diff --git a/lib/node.js b/lib/node.js index 9b88a9e2..3d9c429d 100644 --- a/lib/node.js +++ b/lib/node.js @@ -221,6 +221,7 @@ Node.prototype._syncBitcoind = function() { } self.bitcoindSyncing = true; + self.chain.lastSavedMetadataThreshold = 30000; log.info('Starting Bitcoind Sync'); @@ -272,6 +273,7 @@ Node.prototype._syncBitcoind = function() { }, function(err) { log.info('Stopping Bitcoind Sync'); self.bitcoindSyncing = false; + self.chain.lastSavedMetadataThreshold = 0; if (err) { Error.captureStackTrace(err); return self.emit('error', err);