From e05357ed196219015e260c4b9125d49546a27522 Mon Sep 17 00:00:00 2001 From: Guillaume Michel Date: Fri, 31 Oct 2025 13:59:21 +0100 Subject: [PATCH] provider: protect libp2p connections (#11028) * provider: protect libp2p connections Use latest kad-dht version, introducing connection protection and retention of addresses in peerstore during provide operations. * depend on kad-dht master --- core/node/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/node/provider.go b/core/node/provider.go index 52de235c8..a948b1588 100644 --- a/core/node/provider.go +++ b/core/node/provider.go @@ -415,7 +415,7 @@ func SweepingProviderOpt(cfg *config.Config) fx.Option { dhtprovider.WithKeystore(ks), dhtprovider.WithDatastore(ds), dhtprovider.WithResumeCycle(cfg.Provide.DHT.ResumeEnabled.WithDefault(config.DefaultProvideDHTResumeEnabled)), - dhtprovider.WithPeerID(impl.Host().ID()), + dhtprovider.WithHost(impl.Host()), dhtprovider.WithRouter(impl), dhtprovider.WithMessageSender(impl.MessageSender()), dhtprovider.WithSelfAddrs(selfAddrsFunc),