Skip to content

Commit

Permalink
fixup! wallet: Use WalletTXO stored state and coinbase rather than wtx
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Sep 15, 2023
1 parent 45229c3 commit 805f12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/receive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ bool CachedTxIsTrusted(const CWallet& wallet, const TxState& state, const uint25
bool CachedTxIsTrusted(const CWallet& wallet, const TxState& state, const uint256& txid)
{
std::set<uint256> trusted_parents;
return CachedTxIsTrusted(wallet, wtx.m_state, wtx.GetHash(), trusted_parents);
return CachedTxIsTrusted(wallet, state, txid, trusted_parents);
}

bool CachedTxIsTrusted(const CWallet& wallet, const CWalletTx& wtx, std::set<uint256>& trusted_parents)
Expand Down

0 comments on commit 805f12f

Please sign in to comment.