You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backport "config: add bootstrap peers" (#9680) to v0.37.x #1016
We have found some issues on the solution proposed in tendermint/tendermint#9680 and we did not manage solving them in the backporting PR (#1019).
Our take away is that we should revert the original PR on main and create a new PR adding the same configuration parameter, but including a more precise description and documentation of its usage and specific unit tests.
We believe, however, that while making this config parameter available in v0.37 is helpful, its absence does not prevent any actual user case. Notice that it always possible to "manually" add peer addresses to the address book of a node before starting it.
As requested, to introduce this parameter to the code base we would need to:
Create a method on the p2p.Switch to parse the configured bootstrap peers and add them to the address book
Since the addresses are provided by the operator, the source of the peer addresses in the address book is the node itself (the same already happens with the persistent peers, for instance)
Create tests on the p2p package to check the proper operation of the above mentioned method
A test scenario is to verify that, once configured with bootstrap peers, a node does not dial seed nodes at startup (which it does when the address book is empty), attempting instead to connect to some of the configured bootstrap peers
Add the new parameter to the TOML configuration file
Document the new parameter in the p2p's documentation
Activity
Fraccaman commentedon Jun 22, 2023
@cason I think you mention this is on main already :) ill close this!
[-]Backport `config: add bootstrap peers` (#9680)[/-][+]Backport "config: add bootstrap peers" (#9680) to v0.37.x[/+]cason commentedon Jun 22, 2023
I will reopen the issue to hang the backport PR here.
Like mentioned by @Fraccaman, we have the code but it is not present in v0.37.* releases.
cason commentedon Jun 29, 2023
We have found some issues on the solution proposed in tendermint/tendermint#9680 and we did not manage solving them in the backporting PR (#1019).
Our take away is that we should revert the original PR on
mainand create a new PR adding the same configuration parameter, but including a more precise description and documentation of its usage and specific unit tests.cason commentedon Jun 29, 2023
We believe, however, that while making this config parameter available in v0.37 is helpful, its absence does not prevent any actual user case. Notice that it always possible to "manually" add peer addresses to the address book of a node before starting it.
cason commentedon Jul 11, 2023
We are reverting the addition of this configuration parameter: #1109
We will keep this issue open until we reintroduce the parameter in a proper way.
adizere commentedon Jul 11, 2023
Hi @Fraccaman, note we're not introducing 9680 in v0.37 and removing that from main. Is this feature of high importance to your use-case?
cason commentedon Jul 14, 2023
The issue was automatically closed as #1109 has been merged.
I would prefer keeping it open, but I don't really know how to proceed here.
sergio-mena commentedon Jul 31, 2023
I re-opened it as suggested. @cason can you add a succinct list of items that need to be done in order to close it for good?
cason commentedon Aug 17, 2023
As requested, to introduce this parameter to the code base we would need to:
p2p.Switchto parse the configured bootstrap peers and add them to the address bookp2ppackage to check the proper operation of the above mentioned method