-
Notifications
You must be signed in to change notification settings - Fork 839
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
add cli flag for --static-nodes-file #1414
Comments
Hi there, I would like to have this issue assigned to me. |
@terrencecooke it's assigned to you now 😄 ! |
This will simplify things in http://kotal.co |
Thanks! |
Would like to get a second (3rd, 4th, ... ) opinion. Situation 1: Situation 2: Situation 3: What do you think? |
On second thought, the aforementioned situations I mentioned, collectively seem pretty consistent with the way it already works with static-nodes.json file. It fails only when the file chosen is ill-formed, and continues loading without connecting to static nodes, if the file is not found. I do think situation 3 is clear as is. At first I was thinking that if the file specified on the option line wasn't found, that it should then search for the default static-nodes.json in the default / data directory. However, it's probably better to NOT connect to static nodes at all, rather than to connect to a list of static nodes inadvertently. |
currently static nodes are read from a single location data-dir/static-nodes |
Great! Thanks! |
Now able to inject static nodes by explicitly specifying a static nodes JSON file (.json) on the command line Signed-off-by: Terrence Cooke <terrence.s.cooke@gmail.com>
Now able to inject static nodes by explicitly specifying a static nodes JSON file (.json) on the command line Signed-off-by: Terrence Cooke <terrence.s.cooke@gmail.com>
Three methods added to BesuCommandTest to test newly added --static-nodes-file cli option Signed-off-by: Terrence Cooke <terrence.s.cooke@gmail.com>
PR 1644 is available |
…erledger#1644) Now able to inject static nodes by explicitly specifying a static nodes JSON file (.json) on the command line Co-authored-by: Ratan (Rai) Sur <ratan.r.sur@gmail.com> Signed-off-by: Terrence Cooke <terrence.s.cooke@gmail.com>
Description
The only way to inject static nodes is to add static-nodes.json inside the data directory which makes it very hard to automate in environments like Kubernetes
required feature
besu --static-nodes-file /some/dir/static-nodes.json
The text was updated successfully, but these errors were encountered: