Replies: 1 comment 2 replies
-
If you're using helia with libp2p, unixfs gets a {blockstore} component from helia that is networked: i.e. it's using blockBrokers (trustless gateways and bitswap) and bitswap will utilize any enabled transports. When you say "fetch a CID obtained via gossip" do you mean that someone publishes a message with the CID string, and the then the code above is where you handle it? It seems like that's the case from your above code. In that case, you would want to call something like One common problem folks run into when using
The likely story though, is that the CID you're receiving is not highly available on the network. you should be able to verify this at https://pl-diagnose.on.fleek.co/ |
Beta Was this translation helpful? Give feedback.
-
After establishing a webrtc connection though a circuit relay I am trying to fetch a CID obtained via gossip. Do I need to implement cid retrieval with my own webrtc protocol? It seems unixfs does not seem to know about webrtc peers. I would prefer if the gossip was "normalized" by sending the cid of the intended message rather than the entire message itself.
`host.services.pubsub.addEventListener('message', async (message) => {
})`
Beta Was this translation helpful? Give feedback.
All reactions