celestiaorg / celestia-node

Celestia Data Availability Nodes
Apache License 2.0
929 stars 925 forks source link

feat: Persist peers to disk such that nodes can bootstrap from previously seen peers #1851

Closed Wondertan closed 1 year ago

Wondertan commented 1 year ago

All our infrastructure is based around bootstrappers, and each time a node starts; it connects to them and only to them. We do not save any information about other discovered peers during runtime on disk.

This is a choke point for our networks. In case network bootstrappers go offline, a node connected to the network won't be able to rejoin it after the restart.

Saving known peers on disk and using them for bootstrapping will solve the problem, decrease the load on bootstrappers, and enhance network decentralization.

To ultimately achieve the goal, we should:

renaynay commented 1 year ago

@derrandz is taking over this issue.

TODO (in order):