Skip to content

Commit 93e38d5

Browse files
committed
Merge bitcoin/bitcoin#22173: wallet: Do not load external signers wallets when unsupported
e60cd26 Do not load external signers wallets when unsupported (Andrew Chow) Pull request description: When external signer support is not compiled, do not load external signer wallets. Alternative to #22168. ACKs for top commit: promag: Tested ACK e60cd26. meshcollider: Code review ACK e60cd26 Tree-SHA512: aed2d0038f448c2f89c6b48f412b106e63c9ed20e748e69aae21fb58c33fc7e4fa73375a52372c73788669eb2b968a8da6b022c65658fa4484f5bbcf205b1b15
2 parents 69577a2 + e60cd26 commit 93e38d5

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)