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