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.
This commit is contained in:
teor 2020-08-07 17:48:08 +10:00
parent 23469b2347
commit e95358dbe3
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ where
/// - state: the zebra-state that stores the chain /// - state: the zebra-state that stores the chain
/// - verifier: the zebra-consensus verifier that checks the chain /// - verifier: the zebra-consensus verifier that checks the chain
pub fn new(chain: Network, peers: ZN, state: ZS, verifier: ZV) -> Self { 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 { Self {
tip_network: peers, tip_network: peers,
block_network: retry_peers, block_network: retry_peers,