aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-06-06 13:32:34 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-06-06 13:52:27 -0400
commite60cd26ad46559770ad84d2959c9a1742ae8b7a6 (patch)
treecada474d0caf0bc7eb1116fcf8cfa01653476e72 /src/wallet
parente033ca13794699cf4744e71647db75c583a9a600 (diff)
Do not load external signers wallets when unsupported
When external signer support is not compiled, do not load external signer wallets.
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/walletdb.cpp7
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())
{