Merge pull request #109 from braydonf/metadata
Speed up syncing by delaying saving metadata every 30 seconds.
This commit is contained in:
commit
348d1fc198
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user