Skip to content

Backport "config: add bootstrap peers" (#9680) to v0.37.x #1016

Open

Description

@Fraccaman

Summary

I would come real handy to have 9680 backported to 0.37.x.

Problem Definition

Having only seeds and persistent_peers is kinda annoying for some use cases.

Proposal

Just backport 9680


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Activity

  1. added
    enhancement
    needs-triage
    on Jun 22, 2023
  2. self-assigned this
    on Jun 22, 2023
  3. added and removed
    needs-triage
    on Jun 22, 2023
  4. Fraccaman commented on Jun 22, 2023

    @Fraccaman
    Author

    @cason I think you mention this is on main already :) ill close this!

  5. changed the title [-]Backport `config: add bootstrap peers` (#9680)[/-] [+]Backport "config: add bootstrap peers" (#9680) to v0.37.x[/+] on Jun 22, 2023
  6. cason commented on Jun 22, 2023

    @cason

    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.

  7. reopened this on Jun 22, 2023
  8. cason commented on Jun 29, 2023

    @cason

    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.

  9. cason commented on Jun 29, 2023

    @cason

    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.

  10. cason commented on Jul 11, 2023

    @cason

    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.

  11. linked a pull request that will close this issueRevert "config: add bootstrap peers (#9680)" #1109on Jul 11, 2023
  12. adizere commented on Jul 11, 2023

    @adizere
    Contributor

    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?

  13. cason commented on Jul 14, 2023

    @cason

    We will keep this issue open until we reintroduce the parameter in a proper way.

    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.

  14. sergio-mena commented on Jul 31, 2023

    @sergio-mena
    Collaborator

    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?

  15. cason commented on Aug 17, 2023

    @cason

    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
  16. removed their assignment
    on Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    configenhancementp2p

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions