Introduce --boot-nodes argument to neard init
#3156
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Node
Node team
T-node
Team: issues relevant to the node experience team
T-public-interfaces
Team: issues relevant to the public interfaces team
As per an offline discussion with @khorolets @bowenwang1996 @chefsale, the extension to
neard init
has been suggested to address the emptyboot_nodes
upon the default config generation (currently, when you run a node withneard init
+neard run
you will get "waiting for peers" message due to the fact that the default config generated byneard init
does not have any boot nodes in it).If we add
--boot-nodes
CLI argument we can enable nearcore users to select the list of trusted nodes and initialize their config with a singleneard init
command.The relevant point where we want to alter the config during initialization is:
https://github.com/nearprotocol/nearcore/blob/82501aecfc4493218987872de5c71cc99a777e5a/neard/src/config.rs#L734-L736
(NOTE, this is the link to the testnet/betanet initialization while there are two more branches there, which also need to populate boot nodes)
This issue is also part of near/nearup#81 initiative. Currently,
neard init
produces a config that is not immediately useful, and we rely onnearup
to download the config from https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/testnet/config.jsonThe text was updated successfully, but these errors were encountered: