From 984827592819f7782612e26175d067878a16abc4 Mon Sep 17 00:00:00 2001 From: Matus Kysel Date: Mon, 26 Feb 2024 19:03:39 +0100 Subject: [PATCH] chore: fix the test --- submodules/taraxa-evm | 2 +- tests/rewards_stats_test.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/submodules/taraxa-evm b/submodules/taraxa-evm index c012ac920d..c12da5dcc7 160000 --- a/submodules/taraxa-evm +++ b/submodules/taraxa-evm @@ -1 +1 @@ -Subproject commit c012ac920d672219c6ec45342512562c58805ccd +Subproject commit c12da5dcc75e743fefe14aed99b98055695775c1 diff --git a/tests/rewards_stats_test.cpp b/tests/rewards_stats_test.cpp index 03e2ca7a72..73b36efb5f 100644 --- a/tests/rewards_stats_test.cpp +++ b/tests/rewards_stats_test.cpp @@ -235,11 +235,11 @@ TEST_F(RewardsStatsTest, dagBlockRewards) { HardforksConfig hfc; hfc.aspen_hf.block_num_part_two = 4; - // Create two reward stats to test before and after aspen hardfork part 2 - rewards::Stats pre_aspen_reward_stats(100, HardforksConfig{0, 0, {}, {}, MagnoliaHardfork{0, 0}, AspenHardfork{1, 6}}, - db, [](auto) { return 100; }); + // Create two reward stats to test before and after aspen hardfork part 1 + rewards::Stats pre_aspen_reward_stats( + 100, HardforksConfig{0, 0, {}, {}, MagnoliaHardfork{0, 0}, AspenHardfork{6, 999}}, db, [](auto) { return 100; }); rewards::Stats post_aspen_reward_stats( - 100, HardforksConfig{0, 0, {}, {}, MagnoliaHardfork{0, 0}, AspenHardfork{1, 4}}, db, [](auto) { return 100; }); + 100, HardforksConfig{0, 0, {}, {}, MagnoliaHardfork{0, 0}, AspenHardfork{4, 999}}, db, [](auto) { return 100; }); // Create pbft block with 5 dag blocks auto dag_key1 = dev::KeyPair::create();