mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Merge bitcoin/bitcoin#22173: wallet: Do not load external signers wallets when unsupported
e60cd26ad4
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 ACKe60cd26ad4
. meshcollider: Code review ACKe60cd26ad4
Tree-SHA512: aed2d0038f448c2f89c6b48f412b106e63c9ed20e748e69aae21fb58c33fc7e4fa73375a52372c73788669eb2b968a8da6b022c65658fa4484f5bbcf205b1b15
This commit is contained in:
commit
93e38d5c06
1 changed files with 7 additions and 0 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue