Skip to content

Commit

Permalink
apply wallet test fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoex committed Oct 17, 2024
1 parent 5482653 commit 80f88cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3013,7 +3013,7 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
}

// This wallet is in its first run if there are no ScriptPubKeyMans and it isn't blank or no privkeys
const bool fFirstRun = ((walletInstance->m_spk_managers.empty() && !walletInstance->IsWalletFlagSet(WALLET_FLAG_BLSCT)) || !walletInstance->GetOrCreateBLSCTKeyMan()->CanGenerateKeys()) &&
const bool fFirstRun = ((walletInstance->m_spk_managers.empty() && !walletInstance->IsWalletFlagSet(WALLET_FLAG_BLSCT)) || (walletInstance->IsWalletFlagSet(WALLET_FLAG_BLSCT) && !walletInstance->GetOrCreateBLSCTKeyMan()->CanGenerateKeys())) &&
!walletInstance->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS) &&
!walletInstance->IsWalletFlagSet(WALLET_FLAG_BLANK_WALLET);
if (fFirstRun) {
Expand Down

0 comments on commit 80f88cd

Please sign in to comment.