aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallettool.cpp
diff options
context:
space:
mode:
authorSamuel Dobson <dobsonsa68@gmail.com>2021-09-28 22:00:44 +1300
committerSamuel Dobson <dobsonsa68@gmail.com>2021-09-30 12:06:27 +1300
commitf963b0fa8cdd5223feb828c5faf6c57bc4107c8a (patch)
tree12feca3470a7ff8c17467822cbc1fa30cc0cf2e3 /src/wallet/wallettool.cpp
parent6c006495ef07f163d0734ec35d3cd1589a4aae9d (diff)
downloadbitcoin-f963b0fa8cdd5223feb828c5faf6c57bc4107c8a.tar.xz
Corrupt wallet tx shouldn't trigger rescan of all wallets
Diffstat (limited to 'src/wallet/wallettool.cpp')
-rw-r--r--src/wallet/wallettool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallettool.cpp b/src/wallet/wallettool.cpp
index 50b6c9d29f..4abfde76e2 100644
--- a/src/wallet/wallettool.cpp
+++ b/src/wallet/wallettool.cpp
@@ -76,6 +76,10 @@ static std::shared_ptr<CWallet> MakeWallet(const std::string& name, const fs::pa
} else if (load_wallet_ret == DBErrors::NEED_REWRITE) {
tfm::format(std::cerr, "Wallet needed to be rewritten: restart %s to complete", PACKAGE_NAME);
return nullptr;
+ } else if (load_wallet_ret == DBErrors::RESCAN_REQUIRED) {
+ tfm::format(std::cerr, "Error reading %s! Some transaction data might be missing or"
+ " incorrect. Wallet requires a rescan.",
+ name);
} else {
tfm::format(std::cerr, "Error loading %s", name);
return nullptr;