-
Notifications
You must be signed in to change notification settings - Fork 823
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
Polkadot Node rejects IPFS Nodes #7512
Comments
The IPFS daemon responds on the following protocols:
The polkadot network backend initiates the following protocol negotiations:
I've created this branch to double check the IPFS connectivity: #7551. @peetzweg Could you please build the polkadot binary from the above branch and tell me if that solves the issue for you? 🙏 If that's the case we'd need to expose the |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
The Polkadot SDK's updated libp2p protocol handling uses genesis-hash-based identifiers, breaking compatibility with standard IPFS nodes. This prevents the our storage chain from leveraging the public IPFS Amino DHT network for data distribution.
Our setup
transaction-storage
pallet (https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/transaction-storage)ipfs swarm connect <multiaddrs of storage chain node>
This setup worked flawlessly until we upgraded to a more recent version of polkadot-sdk, from 0e09ad4 (Nov. 7, 2024) to cdf107d (Jan. 9, 2025)
Now I get the following errors in the logs in kubo when I try to
ipfs swarm connect <multiaddrs of storage-node>
stream reset
And in the logs of the storage chain node I used
-lsub-libp2p=trace
and found theseIgnoring self-reported address of peer 12D3KooWGsN2yqVZ9kYCncCjkFSNCGEAPN5SSeEqQ1SpGMapi2X6 as remote node is not part of the Kademlia DHT supported by the local node.
Steps to reproduce
You can reproduce it by running a
./polkadot --ipfs-server -lsub-libp2p=trace
And trying to to connect it to your swarm
ipfs swarm connect <multiaddress of polkadot node>
It will say connect and shows briefly in the peers list but will disconnect shortly after.
ipfs swarm peers
The text was updated successfully, but these errors were encountered: