mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00

This logic collects a list of known relays by testing every new connection. It exists so we can dial /p2p-circuit/p2p/QmFoobar addresses (circuit addresses that don't specify the relay). However, this kind of address is useless outside of basic demos as a random relay is practically guaranteed to not be connected to the target peer. Picking a random relay to connect to some peer is almost _never_ the desired behavior.
Sharness test command coverage
Module | Online Test | Offline Test |
---|---|---|
object | t0051 | t0051 |
ls | t0045 | t0045 |
cat | t0040 | |
dht | ||
bitswap | ||
block | t0050 | |
daemon | t0030 | N/A |
init | N/A | t0020 |
add | t0040 | |
config | t0021 | t0021 |
version | t0060 | t0010 |
ping | ||
diag | ||
mount | t0030 | |
name | t0110 | t0100 |
pin | t0080 | |
get | t0090 | t0090 |
refs | t0080 | |
repo gc | t0080 | |
id | ||
bootstrap | t0120 | t0120 |
swarm | ||
update | ||
commands |