-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap panics if no config has no xBackupBootstrapPeers functions #10030
Comments
Any reason you are using this package ? Also the DHT already have bootstrap code I would use the bootstrap option on the dht directly, |
This is being used to bootstrap IPNI indexers with known gateway nodes that relay pubsub messages from Filecoin storage providers announcing that new index data is available. It is necessary to maintain connections with at least some gateways in order to maintain the gossip mesh over which the messages are communicated. Seemed better to use an existing tested package that was part of go-ipfs (now kubo) that to write one that is nearly identical. The peering package is also used similarly. Both imported here:
I am not currently using DHT in my project, and I am bootstrapping against a known set of gateway nodes that can authenticate Filecoin storage providers and relay gossip pubsub. It seems like using DHT and its bootstrapping is not what I want.
Can I expect one to be available in boxo soon? It seems that the basic bootstrapping service should be in boxo, with the specific implementation of the Load/SaveBackupBootstrapPeers functions being provided by kubo. Should I fork the bootstrap and the peering services and not use what is provided by kubo? |
I did not thought about the fact you would bootstrap something else than a DHT. I'll look at your pull request thx. |
Need this because of ipfs/kubo#10030. Can be removed when ipfs/kubo#10029 is available.
Need this because of ipfs/kubo#10030. Can be removed when ipfs/kubo#10029 is available.
Fixed in #10029 |
Checklist
Installation method
built from source
Version
Config
N/A
Description
I am using the bootstrap package to establish libp2p connections to a set of hosts that I need to exchange gossip pubsub messages with. I am creating the bootstrap config using
BootstrapConfigWithPeers
. When starting the bootstrapper, with:A panic occurs when the first bootstrap round runs because these functions are not assigned in the configuration:
LoadBackupBootstrapPeers
SaveBackupBootstrapPeers
If these functions are expected to be defined, then an error should be returned from
Boosstrap
. If these functions can benil
, then they should not be called.I have created a PR to suggest a possible fix: #10029
Related discussion and issue
Issue #9876
Kubo, invalid memory address or nil pointer dereference from IpfsNode.Bootstrap
The text was updated successfully, but these errors were encountered: