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 {