From e95358dbe372b99402b822913ef8d46fb8cc3b78 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 7 Aug 2020 17:48:08 +1000 Subject: [PATCH] fix: Increase the number of retries The old sync code relied on duplicate block fetches to make progress, but the last few commits have removed some of those duplicates. Instead, just retry the fetches that fail. --- zebrad/src/commands/start/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebrad/src/commands/start/sync.rs b/zebrad/src/commands/start/sync.rs index 4fdd31bc..106add6f 100644 --- a/zebrad/src/commands/start/sync.rs +++ b/zebrad/src/commands/start/sync.rs @@ -59,7 +59,7 @@ where /// - state: the zebra-state that stores the chain /// - verifier: the zebra-consensus verifier that checks the chain pub fn new(chain: Network, peers: ZN, state: ZS, verifier: ZV) -> Self { - let retry_peers = Retry::new(RetryLimit::new(3), peers.clone()); + let retry_peers = Retry::new(RetryLimit::new(10), peers.clone()); Self { tip_network: peers, block_network: retry_peers,