diff options
author | Seibart Nedor <rodentrabies@protonmail.com> | 2022-07-21 12:55:20 +0300 |
---|---|---|
committer | Seibart Nedor <rodentrabies@protonmail.com> | 2022-07-21 12:55:20 +0300 |
commit | f8e228476f54b36beacc3fd09038dfeebdac6b3c (patch) | |
tree | 3288217f4386ca97019b8b24672b329daf94bb2c | |
parent | d1e42659bbdd8da170542d8c638242cd94f71a7d (diff) | |
download | bitcoin-f8e228476f54b36beacc3fd09038dfeebdac6b3c.tar.xz |
tracing: do not use `coin` after move in `CCoinsViewCache::AddCoin`
-rw-r--r-- | src/coins.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coins.cpp b/src/coins.cpp index 1abdcb54d2..1753d33b71 100644 --- a/src/coins.cpp +++ b/src/coins.cpp @@ -99,9 +99,9 @@ void CCoinsViewCache::AddCoin(const COutPoint &outpoint, Coin&& coin, bool possi TRACE5(utxocache, add, outpoint.hash.data(), (uint32_t)outpoint.n, - (uint32_t)coin.nHeight, - (int64_t)coin.out.nValue, - (bool)coin.IsCoinBase()); + (uint32_t)it->second.coin.nHeight, + (int64_t)it->second.coin.out.nValue, + (bool)it->second.coin.IsCoinBase()); } void CCoinsViewCache::EmplaceCoinInternalDANGER(COutPoint&& outpoint, Coin&& coin) { |