mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
refactor tests to fix ubsan suppressions
This commit is contained in:
parent
1824644a36
commit
faedb111d2
8 changed files with 25 additions and 34 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue