From 5c5244911e0277be5eadf557a68ffaa9bf829be7 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Tue, 10 Jan 2017 12:22:28 +0100 Subject: [PATCH] No reorg limit for ancient blocks (#4099) --- sync/src/chain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/src/chain.rs b/sync/src/chain.rs index 6ae69bf74..d36cc26c9 100644 --- a/sync/src/chain.rs +++ b/sync/src/chain.rs @@ -583,7 +583,7 @@ impl ChainSync { if let (Some(ancient_block_hash), Some(ancient_block_number)) = (chain.ancient_block_hash, chain.ancient_block_number) { trace!(target: "sync", "Downloading old blocks from {:?} (#{}) till {:?} (#{:?})", ancient_block_hash, ancient_block_number, chain.first_block_hash, chain.first_block_number); - let mut downloader = BlockDownloader::new(true, &ancient_block_hash, ancient_block_number, pruning.state_history_size); + let mut downloader = BlockDownloader::new(true, &ancient_block_hash, ancient_block_number, None); if let Some(hash) = chain.first_block_hash { trace!(target: "sync", "Downloader target set to {:?}", hash); downloader.set_target(&hash);