From 1ec079a0fe4d518ccaa15d907366efc15b64a9e1 Mon Sep 17 00:00:00 2001 From: George Tankersley Date: Mon, 8 Jun 2020 13:10:09 -0400 Subject: [PATCH] zcash: increase handshake time and address buffer size --- zcash/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zcash/client.go b/zcash/client.go index 2d387b3..7948ddd 100644 --- a/zcash/client.go +++ b/zcash/client.go @@ -40,10 +40,10 @@ var ( minimumReadyAddresses = 10 // The maximum amount of time we will wait for a peer to complete the initial handshake - maximumHandshakeWait = 2 * time.Second + maximumHandshakeWait = 5 * time.Second // The timeout for the underlying dial to a peer - connectionDialTimeout = 2 * time.Second + connectionDialTimeout = 5 * time.Second // The amount of time crawler goroutines will wait after the last new incoming address crawlerThreadTimeout = 30 * time.Second @@ -52,7 +52,7 @@ var ( crawlerGoroutineCount = runtime.NumCPU() * 32 // The amount of space we allocate to keep things moving smoothly. - incomingAddressBufferSize = 1024 + incomingAddressBufferSize = 4096 // The amount of time a peer can spend on the blacklist before we forget about it entirely. blacklistDropTime = 3 * 24 * time.Hour