differnt limit for testnet

This commit is contained in:
Matias Alejo Garcia 2015-06-16 16:22:33 -03:00
parent 86f1a40b9b
commit d0f99b9daa

View File

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