No reorg limit for ancient blocks (#4099)

This commit is contained in:
Arkadiy Paronyan 2017-01-10 12:22:28 +01:00 committed by GitHub
parent d67ceec50c
commit 5c5244911e
1 changed files with 1 additions and 1 deletions

View File

@ -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);