commit
48886dcd5c
@ -254,8 +254,9 @@ HistoricSync.prototype.updateStartBlock = function(opts, next) {
|
|||||||
var ret = false;
|
var ret = false;
|
||||||
|
|
||||||
var d = Math.abs(height - blockInfo.height);
|
var d = Math.abs(height - blockInfo.height);
|
||||||
if (d > 6) {
|
var limit = self.network == 'livenet' ? 6 : 100;
|
||||||
error('Previous Tip block tip height differs by %d. Please delete and resync (-D)', d);
|
if (d > limit) {
|
||||||
|
error('Previous Tip block height differs by %d. Please delete and resync (-D)', d);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
if (self.blockChainHeight === blockInfo.height ||
|
if (self.blockChainHeight === blockInfo.height ||
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user