Skip to content

Commit e60cd26

Browse files
committed
Do not load external signers wallets when unsupported
When external signer support is not compiled, do not load external signer wallets.
1 parent e033ca1 commit e60cd26

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/wallet/walletdb.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,13 @@ DBErrors WalletBatch::LoadWallet(CWallet* pwallet)
712712
}
713713
}
714714

715+
#ifndef ENABLE_EXTERNAL_SIGNER
716+
if (pwallet->IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER)) {
717+
pwallet->WalletLogPrintf("Error: External signer wallet being loaded without external signer support compiled\n");
718+
return DBErrors::TOO_NEW;
719+
}
720+
#endif
721+
715722
// Get cursor
716723
if (!m_batch->StartCursor())
717724
{

0 commit comments

Comments
 (0)