aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-09-06 09:52:59 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-09-09 15:35:04 -0300
commitd26c3cc44438ecb9e4f618a2427c3c92a292aa16 (patch)
treefbf13bc0c5da9deb50031da25090f07913c8495e /src/wallet/walletdb.h
parent5291933fedceb9df16eb9e4627b1d7386b53ba07 (diff)
downloadbitcoin-d26c3cc44438ecb9e4f618a2427c3c92a292aa16.tar.xz
wallet: bugfix, load wallet with an unknown descriptor cause fatal error
If the descriptor entry is unrecognized/corrupt, the unserialization fails and `LoadWallet` instead of stop there and return the error, continues reading all the db records. As other records tied to the unrecognized/corrupted descriptor are scanned, a fatal error is thrown.
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r--src/wallet/walletdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h
index 6aa25fae03..da6efe534b 100644
--- a/src/wallet/walletdb.h
+++ b/src/wallet/walletdb.h
@@ -51,7 +51,8 @@ enum class DBErrors
EXTERNAL_SIGNER_SUPPORT_REQUIRED,
LOAD_FAIL,
NEED_REWRITE,
- NEED_RESCAN
+ NEED_RESCAN,
+ UNKNOWN_DESCRIPTOR
};
namespace DBKeys {