mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-06 10:42:46 +01:00
Do not load external signers wallets when unsupported
When external signer support is not compiled, do not load external signer wallets.
This commit is contained in:
@@ -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
|
// Get cursor
|
||||||
if (!m_batch->StartCursor())
|
if (!m_batch->StartCursor())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user