Add active peer probing and reputation caching #53
Labels
dif/hard
Having worked on the specific codebase is important
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
Someguy should be able to cache (#25) peerbook info returned on
/routing/v1/providers
, and build reputation over time for returned PeerIDs.Goals
/wss
,/tls/../ws|http
,/https
,/webrtc*
,/webtransport
)/tls/../http
and/https
is a trustless gateway, and addtransport-ipfs-gateway-http
toProtocols
list in respective peeripfs id --peerid-base base36 QmbNSJi9X4Phf5G6YgmVYWZiCzraLp5Ta4GT2XYHPwzE5S
produces[/ip4/3.75.101.246/udp/4001/quic] QUIC draft-29 has been removed, QUIC (RFC 9000) is accessible with /quic-v1
and[/ip4/3.75.101.246/tcp/4001] failed to negotiate security protocol: read tcp4 192.168.50.102:4001
Implementation ideas
I imagine we could start with something built on top of peerbook system where every PeerID has additional attributes:
last time PeerID was returned
with/routing/v1/
responsehow many times PeerID was returned
with/routing/v1/
responselast time PeerID was probed
/last time PeerID was seen online
Active probing could be async, going over peers with
last time PeerID was seen online
older than N (6?) hours and trying to connect to them andThe text was updated successfully, but these errors were encountered: