diff --git a/lib/HistoricSync.js b/lib/HistoricSync.js index 717d4cf..505ce4c 100644 --- a/lib/HistoricSync.js +++ b/lib/HistoricSync.js @@ -254,8 +254,9 @@ HistoricSync.prototype.updateStartBlock = function(opts, next) { var ret = false; var d = Math.abs(height - blockInfo.height); - if (d > 6) { - error('Previous Tip block tip height differs by %d. Please delete and resync (-D)', d); + var limit = self.network == 'livenet' ? 6 : 100; + if (d > limit) { + error('Previous Tip block height differs by %d. Please delete and resync (-D)', d); process.exit(1); } if (self.blockChainHeight === blockInfo.height ||