Skip to content

Commit f5eadcb

Browse files
author
MacroFake
committed
Merge bitcoin/bitcoin#25663: tracing: do not use coin after move in CCoinsViewCache::AddCoin
f8e2284 tracing: do not use `coin` after move in `CCoinsViewCache::AddCoin` (Seibart Nedor) Pull request description: This is fix for bitcoin/bitcoin#25640. ACKs for top commit: 0xB10C: ACK f8e2284 Tree-SHA512: e7643ac8e6b6247aaf250f44572c4b458da4aea030ac0268227564e6857200e9c23efe325cfc535f46498cbeccaf46301551efeeb54b062f71d2dcf1ffe71fb8
2 parents c5ba1d9 + f8e2284 commit f5eadcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/coins.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ void CCoinsViewCache::AddCoin(const COutPoint &outpoint, Coin&& coin, bool possi
9999
TRACE5(utxocache, add,
100100
outpoint.hash.data(),
101101
(uint32_t)outpoint.n,
102-
(uint32_t)coin.nHeight,
103-
(int64_t)coin.out.nValue,
104-
(bool)coin.IsCoinBase());
102+
(uint32_t)it->second.coin.nHeight,
103+
(int64_t)it->second.coin.out.nValue,
104+
(bool)it->second.coin.IsCoinBase());
105105
}
106106

107107
void CCoinsViewCache::EmplaceCoinInternalDANGER(COutPoint&& outpoint, Coin&& coin) {

0 commit comments

Comments
 (0)