diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-02 16:53:02 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-20 15:25:23 +0100 |
commit | faedb111d2df78eabddaeccaba42f47572388bc7 (patch) | |
tree | ce51566ee5b0ac9311b4dedeebf48a4590f7afc9 /src/test/coins_tests.cpp | |
parent | 1824644a363bf4adfb54cf32ab63806808fe778b (diff) |
refactor tests to fix ubsan suppressions
Diffstat (limited to 'src/test/coins_tests.cpp')
-rw-r--r-- | src/test/coins_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index 3921a9d2d1..922fd8e513 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -393,11 +393,11 @@ BOOST_AUTO_TEST_CASE(updatecoins_simulation_test) // Update the expected result to know about the new output coins assert(tx.vout.size() == 1); const COutPoint outpoint(tx.GetHash(), 0); - result[outpoint] = Coin(tx.vout[0], height, CTransaction(tx).IsCoinBase()); + result[outpoint] = Coin{tx.vout[0], int(height), CTransaction(tx).IsCoinBase()}; // Call UpdateCoins on the top cache CTxUndo undo; - UpdateCoins(CTransaction(tx), *(stack.back()), undo, height); + UpdateCoins(CTransaction(tx), *(stack.back()), undo, int(height)); // Update the utxo set for future spends utxoset.insert(outpoint); |