diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-08-28 00:18:39 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-08-28 00:18:39 +0000 |
commit | 1dc427def97a05d83179e80b06a27a9a5f4a431d (patch) | |
tree | baf49c46bd7dd3c240c3015a8f43b2cfb38f6ec3 /tests/core_tests/rct2.cpp | |
parent | core_tests: remove hardcoded hf version (diff) | |
download | monero-1dc427def97a05d83179e80b06a27a9a5f4a431d.tar.xz |
core_tests: fix failures after v13
v13 enforces claiming the full block reward, so we need to keep
track of tx fees to add them to the coinbase
Diffstat (limited to 'tests/core_tests/rct2.cpp')
-rw-r--r-- | tests/core_tests/rct2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core_tests/rct2.cpp b/tests/core_tests/rct2.cpp index 55d700429..8d7c4b3eb 100644 --- a/tests/core_tests/rct2.cpp +++ b/tests/core_tests/rct2.cpp @@ -175,7 +175,7 @@ bool gen_rct2_tx_validation_base::generate_with(std::vector<test_event_entry>& e CHECK_AND_ASSERT_MES(generator.construct_block_manually(blk_txes, blk_last, miner_account, test_generator::bf_major_ver | test_generator::bf_minor_ver | test_generator::bf_timestamp | test_generator::bf_tx_hashes | test_generator::bf_hf_version | test_generator::bf_max_outs, hf_version, hf_version, blk_last.timestamp + DIFFICULTY_BLOCKS_ESTIMATE_TIMESPAN * 2, // v2 has blocks twice as long - crypto::hash(), 0, transaction(), starting_rct_tx_hashes, 0, 6, 10), + crypto::hash(), 0, transaction(), starting_rct_tx_hashes, 0, 6, hf_version), false, "Failed to generate block"); if (!valid) DO_CALLBACK(events, "mark_invalid_block"); |