Skip to content

Commit f8e2284

Browse files
committed
tracing: do not use coin after move in CCoinsViewCache::AddCoin
1 parent d1e4265 commit f8e2284

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)