From 21cdca537a9db2d1cdbefac08dbc86d8f440a812 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 18 Feb 2014 10:49:52 -0300 Subject: [PATCH] fix typo for sync strategy --- lib/HistoricSync.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/HistoricSync.js b/lib/HistoricSync.js index 2168299..5f3c4b6 100644 --- a/lib/HistoricSync.js +++ b/lib/HistoricSync.js @@ -260,9 +260,8 @@ function spec() { HistoricSync.prototype.prepareFileSync = function(opts, next) { var self = this; - if ( - opts.forceRPC || !config.bitcoind.dataDir || - self.connectedCountDB > self.blockChainHeight > 0.9) return next(); + if ( opts.forceRPC || !config.bitcoind.dataDir || + self.connectedCountDB > self.blockChainHeight * 0.9) return next(); self.blockExtractor = new BlockExtractor(config.bitcoind.dataDir, config.network);