Skip to content

Commit e05357e

Browse files
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
1 parent cf4b1f4 commit e05357e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/node/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ func SweepingProviderOpt(cfg *config.Config) fx.Option {
415415
dhtprovider.WithKeystore(ks),
416416
dhtprovider.WithDatastore(ds),
417417
dhtprovider.WithResumeCycle(cfg.Provide.DHT.ResumeEnabled.WithDefault(config.DefaultProvideDHTResumeEnabled)),
418-
dhtprovider.WithPeerID(impl.Host().ID()),
418+
dhtprovider.WithHost(impl.Host()),
419419
dhtprovider.WithRouter(impl),
420420
dhtprovider.WithMessageSender(impl.MessageSender()),
421421
dhtprovider.WithSelfAddrs(selfAddrsFunc),

0 commit comments

Comments
 (0)