kubo/core/node/libp2p
Marten Seemann 232ccb4e55
feat: relay v2 discovery (go-libp2p v0.19.0) (#8868)
* update go-libp2p to v0.19.0
* chore: go-namesys v0.5.0
* refactor(config): cleanup relay handling
* docs(config): document updated defaults
* fix(tests): panic during sharness

* fix: t0160-resolve.sh
See https://github.com/ipfs/go-namesys/pull/32

* fix: t0182-circuit-relay.sh
* test: transport encryption

Old tests were no longer working because go-libp2p 0.19 removed
the undocumented 'ls' pseudoprotocol.

This replaces these tests with handshake attempt (name is echoed back on
OK or 'na' is returned when protocol is not available) for tls and noise
variants + adds explicit test that safeguards us against enabling
plaintext by default by a mistake.

* fix: ./t0182-circuit-relay.sh

test is flaky, for now we just restart the testbed when we get
NO_RESERVATION error

* refactor: AutoRelayFeeder with exp. backoff

It starts at feeding peers ever 15s, then backs off each time
until it is done once an hour

Should be acceptable until we have smarter mechanism in go-lib2p 0.20

* feat(AutoRelay): prioritize Peering.Peers

This ensures we feed trusted Peering.Peers in addition to any peers
discovered over DHT.

* docs(CHANGELOG): document breaking changes

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Gus Eggert <gus@gus.dev>
2022-04-28 17:13:15 +02:00
..
addrs.go feat: Addresses.AppendAnnounce (#8177) 2021-11-30 17:58:19 +01:00
discovery.go fix(discovery): fix daemon not starting due to mdns startup failure (#8704) 2022-03-09 07:08:24 -08:00
dns.go explicit construction of DNS resolver 2021-05-10 21:03:27 -07:00
filters.go use a ConnectionManager for filtering addresses 2021-08-19 18:04:48 +02:00
host.go feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563) 2021-11-29 19:58:05 +01:00
hostopt.go feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563) 2021-11-29 19:58:05 +01:00
libp2p_test.go add a test case for libp2p option prioritization 2022-02-28 15:26:06 +04:00
libp2p.go feat: opt-in Swarm.ResourceMgr (go-libp2p v0.18) (#8680) 2022-04-07 21:06:35 -04:00
nat.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
peerstore.go feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563) 2021-11-29 19:58:05 +01:00
pnet.go update to new private network interfaces 2020-03-09 19:39:06 -07:00
pubsub.go fix(pubsub): flood publish 2020-05-29 16:42:10 -07:00
rcmgr_defaults.go feat: detect changes in go-libp2p-resource-manager (#8857) 2022-04-08 17:43:30 +02:00
rcmgr_metrics.go feat: opt-in Swarm.ResourceMgr (go-libp2p v0.18) (#8680) 2022-04-07 21:06:35 -04:00
rcmgr.go feat: persist limits to Swarm.ResourceMgr.Limits (#8901) 2022-04-28 15:27:16 +02:00
relay.go feat: relay v2 discovery (go-libp2p v0.19.0) (#8868) 2022-04-28 17:13:15 +02:00
routing.go feat: relay v2 discovery (go-libp2p v0.19.0) (#8868) 2022-04-28 17:13:15 +02:00
routingopt.go integrate experimental AcceleratedDHTClient 2021-05-14 04:31:06 -04:00
sec.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
smux.go feat: opt-in Swarm.ResourceMgr (go-libp2p v0.18) (#8680) 2022-04-07 21:06:35 -04:00
topicdiscovery.go ipns(pubsub): utilize persistent pubsub value store 2019-12-11 11:52:05 -05:00
transport.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00