Skip to content

feat: enable NoDial should still dial static nodes #2149

@weiihann

Description

@weiihann

Rationale

In some cases, we would not want to dial any external peers but still want to dial the preconfigured static nodes. In this case, the config file would look something like:

...
[Node.P2P]
NoDial = true
StaticNodes = [...]

In the current implementation, setting NoDial to true will by default not dial any peers at all, including the static nodes. This should be modified.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions