From e60cd26ad46559770ad84d2959c9a1742ae8b7a6 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Sun, 6 Jun 2021 13:32:34 -0400 Subject: Do not load external signers wallets when unsupported When external signer support is not compiled, do not load external signer wallets. --- src/wallet/walletdb.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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()) { -- cgit v1.2.3