diff --git a/src/index/coinstatsindex.cpp b/src/index/coinstatsindex.cpp index 3d09225489..af798e2913 100644 --- a/src/index/coinstatsindex.cpp +++ b/src/index/coinstatsindex.cpp @@ -256,7 +256,7 @@ bool CoinStatsIndex::CustomAppend(const interfaces::BlockInfo& block) return false; } - batch.Write(DBHashKey(value.first), std::move(value.second)); + batch.Write(DBHashKey(value.first), value.second); return true; } diff --git a/src/test/fuzz/utxo_total_supply.cpp b/src/test/fuzz/utxo_total_supply.cpp index d9382ca831..1348962ad5 100644 --- a/src/test/fuzz/utxo_total_supply.cpp +++ b/src/test/fuzz/utxo_total_supply.cpp @@ -153,7 +153,7 @@ FUZZ_TARGET(utxo_total_supply) node::RegenerateCommitments(*current_block, chainman); const bool was_valid = !MineBlock(node, current_block).IsNull(); - const auto prev_utxo_stats = utxo_stats; + const uint256 prev_hash_serialized{utxo_stats.hashSerialized}; if (was_valid) { if (duplicate_coinbase_height == ActiveHeight()) { // we mined the duplicate coinbase @@ -167,7 +167,7 @@ FUZZ_TARGET(utxo_total_supply) if (!was_valid) { // utxo stats must not change - assert(prev_utxo_stats.hashSerialized == utxo_stats.hashSerialized); + assert(prev_hash_serialized == utxo_stats.hashSerialized); } current_block = PrepareNextBlock();