walletdb: fix scan log

This commit is contained in:
Nodar Chkuaselidze 2017-11-22 19:57:23 +04:00
parent d489238711
commit 52584af3c2
No known key found for this signature in database
GPG Key ID: 8E1B4DC29040BD90

View File

@ -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 {