From b39554fa981b2e706a9af2693822c808d6e141e3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 27 Oct 2017 04:51:39 -0700 Subject: [PATCH] txdb: minor. --- lib/wallet/txdb.js | 2 +- lib/wallet/walletdb.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }; /**