diff --git a/lib/wallet/txdb.js b/lib/wallet/txdb.js index e85216b4..872c7205 100644 --- a/lib/wallet/txdb.js +++ b/lib/wallet/txdb.js @@ -982,7 +982,7 @@ TXDB.prototype.revert = async function revert(height) { await this.unconfirm(hash); } - return block.hashes.length; + return hashes.length; }; /** diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index 548a1fcb..de6f94d7 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -1742,7 +1742,7 @@ WalletDB.prototype.revert = async function revert(target) { } }); - this.logger.info('Rolled back WalletDB %d transactions.', total); + this.logger.info('Rolled back %d WalletDB transactions.', total); }; /**