diff options
author | dergoegge <n.goeggi@gmail.com> | 2023-10-11 14:53:04 +0100 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2023-11-21 13:15:44 +0000 |
commit | 9e58c5bcd96e7ff2062274868814ccae0626589e (patch) | |
tree | b5aa7606931ec3cac2a5e3ce40421562c8fa48f8 /src/wallet/spend.cpp | |
parent | d752349029ec7a76f1fd440db2ec2e458d0f3c99 (diff) | |
download | bitcoin-9e58c5bcd96e7ff2062274868814ccae0626589e.tar.xz |
Use Txid in COutpoint
Diffstat (limited to 'src/wallet/spend.cpp')
-rw-r--r-- | src/wallet/spend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index d586f6d4aa..35583642a5 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -321,7 +321,7 @@ CoinsResult AvailableCoins(const CWallet& wallet, std::set<uint256> trusted_parents; for (const auto& entry : wallet.mapWallet) { - const uint256& wtxid = entry.first; + const uint256& txid = entry.first; const CWalletTx& wtx = entry.second; if (wallet.IsTxImmatureCoinBase(wtx) && !params.include_immature_coinbase) @@ -381,7 +381,7 @@ CoinsResult AvailableCoins(const CWallet& wallet, for (unsigned int i = 0; i < wtx.tx->vout.size(); i++) { const CTxOut& output = wtx.tx->vout[i]; - const COutPoint outpoint(wtxid, i); + const COutPoint outpoint(Txid::FromUint256(txid), i); if (output.nValue < params.min_amount || output.nValue > params.max_amount) continue; |