mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
wallet: Add external-signer-support specific error message
This commit is contained in:
parent
5f44c5c428
commit
7f3a6a9495
3 changed files with 6 additions and 1 deletions
|
@ -2692,6 +2692,10 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
|
|||
error = strprintf(_("Error loading %s: Wallet requires newer version of %s"), walletFile, PACKAGE_NAME);
|
||||
return nullptr;
|
||||
}
|
||||
else if (nLoadWalletRet == DBErrors::EXTERNAL_SIGNER_SUPPORT_REQUIRED) {
|
||||
error = strprintf(_("Error loading %s: External signer wallet being loaded without external signer support compiled"), walletFile);
|
||||
return nullptr;
|
||||
}
|
||||
else if (nLoadWalletRet == DBErrors::NEED_REWRITE)
|
||||
{
|
||||
error = strprintf(_("Wallet needed to be rewritten: restart %s to complete"), PACKAGE_NAME);
|
||||
|
|
|
@ -788,7 +788,7 @@ 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;
|
||||
return DBErrors::EXTERNAL_SIGNER_SUPPORT_REQUIRED;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ enum class DBErrors
|
|||
CORRUPT,
|
||||
NONCRITICAL_ERROR,
|
||||
TOO_NEW,
|
||||
EXTERNAL_SIGNER_SUPPORT_REQUIRED,
|
||||
LOAD_FAIL,
|
||||
NEED_REWRITE,
|
||||
NEED_RESCAN
|
||||
|
|
Loading…
Add table
Reference in a new issue