rust-ipfs icon indicating copy to clipboard operation
rust-ipfs copied to clipboard

feat: Connect to bootstrap peers

Open dariusc93 opened this issue 9 months ago • 0 comments

When initializing the ipfs node, one is able to add bootstrap peers via UninitializedIpfs::add_bootstrap, which would add them to kademlia routing table, however if the protocol is disabled, then nothing happens. What we should do instead is connect to the peers if the protocol is disabled (or maybe ensure that the connection is made regardless of protocol status), and maybe make the connection persistent since manual entry would indicate some form of trust. The persistent connection would likely need to be done through its own behaviour with the connection handler being kept alive, though the bootstrap peers may or may not have the same conditions to keep the connection alive.

dariusc93 avatar May 15 '24 04:05 dariusc93