From 52584af3c2819f29a082295e56304ecaeda14acc Mon Sep 17 00:00:00 2001 From: Nodar Chkuaselidze Date: Wed, 22 Nov 2017 19:57:23 +0400 Subject: [PATCH] walletdb: fix scan log --- lib/wallet/walletdb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index 04fa8132..4d7c1e06 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -447,12 +447,12 @@ WalletDB.prototype.scan = async function scan(height) { assert(util.isU32(height), 'WDB: Must pass in a height.'); - await this.rollback(height); - this.logger.info( 'WalletDB is scanning %d blocks.', this.state.height - height + 1); + await this.rollback(height); + const tip = await this.getTip(); try {