You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I make a relay reservation the HopMessage.reservation.addrs field sometimes has multiaddrs that repeat the relay's peer id.
This only seems to happen with the WebSocket transport addresses advertised by the Amino DHT bootstrap nodes, so it might to AppendAnnounce addresses. Nodes not listening on DNS/WSS addresses seem fine.
For example I make a reservation on am6.bootstrap.libp2p.io, PeerID QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb, these are the string versions of the .addrs field in the response HopMessage:
They are all fine, except the final two /dns4 and /dns6 addresses which have the tuple /p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb repeated twice.
These addresses are set by the AppendAnnounce config key.
I think this may be because the Circuit Relay spec says:
the addrs field contains all the public relay addrs, including the peer ID of the relay node but not the trailing p2p-circuit part
"including the peer ID" is not something we do elsewhere (it's normally omitted from PeerInfos received from the routing, for example), so I guess it's not checking if its PeerID is already present in the address before appending it?
The text was updated successfully, but these errors were encountered:
achingbrain
changed the title
Circuit relay reservation addresses sometimes returned with repeated relay PeerIds
Circuit relay reservation addresses sometimes returnes with repeated relay PeerIds
Oct 10, 2024
achingbrain
changed the title
Circuit relay reservation addresses sometimes returnes with repeated relay PeerIds
Circuit relay reservation addresses sometimes returns with repeated relay PeerIds
Oct 10, 2024
If I make a relay reservation the
HopMessage.reservation.addrs
field sometimes has multiaddrs that repeat the relay's peer id.This only seems to happen with the WebSocket transport addresses advertised by the Amino DHT bootstrap nodes, so it might to AppendAnnounce addresses. Nodes not listening on DNS/WSS addresses seem fine.
For example I make a reservation on
am6.bootstrap.libp2p.io
, PeerIDQmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb
, these are the string versions of the.addrs
field in the responseHopMessage
:They are all fine, except the final two
/dns4
and/dns6
addresses which have the tuple/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb
repeated twice.These addresses are set by the
AppendAnnounce
config key.I think this may be because the Circuit Relay spec says:
"including the peer ID" is not something we do elsewhere (it's normally omitted from
PeerInfo
s received from the routing, for example), so I guess it's not checking if its PeerID is already present in the address before appending it?The text was updated successfully, but these errors were encountered: