diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-06-06 13:32:34 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-06-06 13:52:27 -0400 |
commit | e60cd26ad46559770ad84d2959c9a1742ae8b7a6 (patch) | |
tree | cada474d0caf0bc7eb1116fcf8cfa01653476e72 | |
parent | e033ca13794699cf4744e71647db75c583a9a600 (diff) | |
download | bitcoin-e60cd26ad46559770ad84d2959c9a1742ae8b7a6.tar.xz |
Do not load external signers wallets when unsupported
When external signer support is not compiled, do not load external
signer wallets.
-rw-r--r-- | src/wallet/walletdb.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index c06b319b0b..24d5351945 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -712,6 +712,13 @@ DBErrors WalletBatch::LoadWallet(CWallet* pwallet) } } +#ifndef ENABLE_EXTERNAL_SIGNER + if (pwallet->IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER)) { + pwallet->WalletLogPrintf("Error: External signer wallet being loaded without external signer support compiled\n"); + return DBErrors::TOO_NEW; + } +#endif + // Get cursor if (!m_batch->StartCursor()) { |