allow tip block to be "burried" with 100 blocks in testnet

This commit is contained in:
Matias Alejo Garcia 2015-06-16 16:23:25 -03:00
parent d0f99b9daa
commit 7c0e34e6c3

View File

@ -254,7 +254,7 @@ HistoricSync.prototype.updateStartBlock = function(opts, next) {
var ret = false;
var d = Math.abs(height - blockInfo.height);
var limit = self.network == 'livenet' ? 6 : 60;
var limit = self.network == 'livenet' ? 6 : 100;
if (d > limit) {
error('Previous Tip block tip height differs by %d. Please delete and resync (-D)', d);
process.exit(1);