From 018d54f516bf5f5b7228dd59b45eff9a378ce269 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 11 Apr 2019 21:47:34 -0700 Subject: [PATCH] keep temp addresses for 2 minutes Unfortunately, services like the DHT are slow enough that we can forget addresses before we successfully dial. --- p2p/host/peerstore/interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/host/peerstore/interface.go b/p2p/host/peerstore/interface.go index 4d166684f5..61b7af97e0 100644 --- a/p2p/host/peerstore/interface.go +++ b/p2p/host/peerstore/interface.go @@ -19,7 +19,7 @@ var ( AddressTTL = time.Hour // TempAddrTTL is the ttl used for a short lived address - TempAddrTTL = time.Second * 10 + TempAddrTTL = time.Minute * 2 // ProviderAddrTTL is the TTL of an address we've received from a provider. // This is also a temporary address, but lasts longer. After this expires,