fix typo for sync strategy
This commit is contained in:
parent
b8f95b7a0e
commit
21cdca537a
@ -260,9 +260,8 @@ function spec() {
|
|||||||
HistoricSync.prototype.prepareFileSync = function(opts, next) {
|
HistoricSync.prototype.prepareFileSync = function(opts, next) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
if (
|
if ( opts.forceRPC || !config.bitcoind.dataDir ||
|
||||||
opts.forceRPC || !config.bitcoind.dataDir ||
|
self.connectedCountDB > self.blockChainHeight * 0.9) return next();
|
||||||
self.connectedCountDB > self.blockChainHeight > 0.9) return next();
|
|
||||||
|
|
||||||
|
|
||||||
self.blockExtractor = new BlockExtractor(config.bitcoind.dataDir, config.network);
|
self.blockExtractor = new BlockExtractor(config.bitcoind.dataDir, config.network);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user