diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -392,7 +392,8 @@ utxoset.insert(outpoint); // Track this tx and undo info to use later - utxoData.emplace(outpoint, std::make_tuple(tx, undo, old_coin)); + utxoData.emplace(outpoint, + std::make_tuple(CTransaction(tx), undo, old_coin)); } // 1/20 times undo a previous transaction