From 21cdca537a9db2d1cdbefac08dbc86d8f440a812 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 18 Feb 2014 10:49:52 -0300 Subject: [PATCH 1/2] 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); From 9bc952a274215007b7b8f9db2f4c47bc89699d1e Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 18 Feb 2014 10:50:07 -0300 Subject: [PATCH 2/2] fix status page sync error --- public/views/status.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/public/views/status.html b/public/views/status.html index 2fc3ac9..a04b019 100644 --- a/public/views/status.html +++ b/public/views/status.html @@ -10,23 +10,26 @@

Sync Status

- - {{sync.error}} - - +
Sync Progress
- {{sync.syncPercentage}}% Complete + {{sync.syncPercentage}}% Complete
Current Sync Status{{sync.status}} + {{sync.status}} + + + {{sync.error}} + +
Start Date