Closed
Description
Summary
A client connecting to a relayv2 server starts providing a key (by calling kademlia.start_providing
), from other peers (even from the relay server itself) no providers for that key are found (by calling kademlia.get_providers
). The client is listening on the relayed multiaddr and this multiaddr is explicitly added to kademlia with kademlia.add_address
.
Expected behaviour
Providers run by relayed peers can be discovered.
Not sure if this is actually the excepted behaviour, please let me know if not.
Actual behaviour
Looks like the multiaddr including p2p-circuit are being filtered out or not included at all.
Debug Output on the relayed client:
%cDEBUG%c src/network/relay_client.rs:231%c received event: Behaviour(Kademlia(OutboundQueryCompleted { id: QueryId(0), result: StartProviding(Ok(AddProviderOk { key: Key(b"12D3KooWP285Hw3CSTdr9oU6Ezz4hDoi6XS5vfDjjNeTJ1uFMGvp_info") })), stats: QueryStats { requests: 2, success: 2, failure: 0, start: Some(Instant(1.27222s)), end: Some(Instant(1.313394999s)) } }))
color: white; padding: 0 3px; background: blue;
Debug Output on the relay server:
[2022-10-10T11:13:18Z DEBUG wasm_net::network::relay_server] received event: Behaviour(Kademlia(OutboundQueryCompleted { id: QueryId(2), result: GetProviders(Ok(GetProvidersOk { key: Key(b"12D3KooWP285Hw3CSTdr9oU6Ezz4hDoi6XS5vfDjjNeTJ1uFMGvp_info"), providers: {}, closest_peers: [] })), stats: QueryStats { requests: 0, success: 0, failure: 0, start: Some(Instant { tv_sec: 16213, tv_nsec: 400116198 }), end: Some(Instant { tv_sec: 16213, tv_nsec: 400116198 }) } }))
Version
- libp2p version (version number, commit, or branch): aba5ccb
Would you like to work on fixing this bug?
Yes.
Metadata
Metadata
Assignees
Labels
No labels