Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dumpconfig ignores StaticNodes #16346

Closed
shazow opened this issue Mar 19, 2018 · 2 comments · Fixed by #18199
Closed

dumpconfig ignores StaticNodes #16346

shazow opened this issue Mar 19, 2018 · 2 comments · Fixed by #18199
Assignees
Milestone

Comments

@shazow
Copy link
Contributor

shazow commented Mar 19, 2018

System information

Geth version: 1.8.3-unstable (built from master)
OS & Version: Linux,
Commit hash : fe6cf00

Expected behaviour

After adding some nodes to geth/static-nodes.json, I would expect geth dumpconfig to include those nodes.

I have confirmed that the static nodes are being respected (ie. the node does connect to said nodes with --nodiscover). It's just that dumpconfig seems to ignore them.

Actual behaviour

$ geth dumpconfig
[Node.P2P]
...
StaticNodes = []
TrustedNodes = []
...

Steps to reproduce the behaviour

  1. Write some geth/static-nodes.json
  2. Run geth dumpconfig | grep StaticNodes
  3. 😢
@fjl fjl self-assigned this Mar 19, 2018
@zouguangxian
Copy link
Contributor

I've fixed it. please refer to #17889.

@fjl
Copy link
Contributor

fjl commented Nov 28, 2018

My problem with this is that you'll have them set twice if you maintain static-nodes.json and then add them to the TOML config later. I think the current way is OK. static-nodes.json and trusted-nodes.json existed long before we had config file support. Now that config file is supported, the only reason why we keep them around is for backward compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants