diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 8495b7efbf..ff5a71a706 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3515,7 +3515,7 @@ static RPCHelpMan fundrawtransaction() CAmount fee; int change_position; CCoinControl coin_control; - // Automatically select (additional) coins. Can be overriden by options.add_inputs. + // Automatically select (additional) coins. Can be overridden by options.add_inputs. coin_control.m_add_inputs = true; FundTransaction(pwallet, tx, fee, change_position, request.params[1], coin_control); @@ -4509,7 +4509,7 @@ static RPCHelpMan walletcreatefundedpsbt() CMutableTransaction rawTx = ConstructTransaction(request.params[0], request.params[1], request.params[2]); CCoinControl coin_control; // Automatically select coins, unless at least one is manually selected. Can - // be overriden by options.add_inputs. + // be overridden by options.add_inputs. coin_control.m_add_inputs = rawTx.vin.size() == 0; FundTransaction(pwallet, rawTx, fee, change_position, request.params[3], coin_control); diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index b5575a46a7..0e38d6e2a8 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1700,7 +1700,7 @@ bool CWallet::AddWalletFlags(uint64_t flags) { LOCK(cs_wallet); // We should never be writing unknown non-tolerable wallet flags - assert(!(((flags & KNOWN_WALLET_FLAGS) >> 32) ^ (flags >> 32))); + assert(((flags & KNOWN_WALLET_FLAGS) >> 32) == (flags >> 32)); if (!WalletBatch(GetDatabase()).WriteWalletFlags(flags)) { throw std::runtime_error(std::string(__func__) + ": writing wallet flags failed"); }