diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index 0f31b99a..ab95c65f 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -441,12 +441,12 @@ class WalletDB extends EventEmitter { assert((height >>> 0) === 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 {