-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
Background
Provider record look ups sometimes return no multiaddrs for providers even though those peers are routable and their addresses can be resolved in a subsequent peer lookup (either with an HTTP call to /v1/peer/PeerID or using Kubo)
Root cause
- Peer maddrs are stored with a 15 minute TTL by default https://github.com/libp2p/go-libp2p/blob/cd88f9784044da5466534713a23d61d874774a53/core/peerstore/peerstore.go#L29-L31
- DHT Servers for a given provider record will keep the peer maddrs for 24 hours https://github.com/libp2p/go-libp2p-kad-dht/blob/398987531298d7dd6797b83a2e6737e746567d2e/providers/providers_manager.go#L255
Possible directions for solution
- Add an additional find_peer call for providers with no maddrs
- Implement Add active peer probing and reputation caching #53
Related issues:
2color
Metadata
Metadata
Assignees
Labels
No labels