Skip to content

Commit

Permalink
fix and improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
dsiganos committed Jan 26, 2024
1 parent 7ae02c9 commit cb3c30d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nano/core_test/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,8 @@ TEST (active_transactions, vote_replays)
ASSERT_EQ (1, node.active.size ());

// vote2_send2 is a non final vote with little weight, vote1_send2 is the vote that confirms the election
auto vote1_send2 = nano::vote::make_final_vote (nano::dev::genesis_key.pub, nano::dev::genesis_key.prv, { send2->hash () });
auto vote2_send2 = std::make_shared<nano::vote> (key.pub, key.prv, 0, 0, std::vector<nano::block_hash>{ send2->hash () });
auto vote1_send2 = nano::test::make_final_vote (nano::dev::genesis_key, { send2 });
auto vote2_send2 = nano::test::make_vote (key, { send2 }, 0, 0);
ASSERT_EQ (nano::vote_code::vote, node.active.vote (vote2_send2)); // this vote cannot confirm the election
ASSERT_EQ (1, node.active.size ());
ASSERT_EQ (nano::vote_code::replay, node.active.vote (vote2_send2)); // this vote cannot confirm the election
Expand Down

0 comments on commit cb3c30d

Please sign in to comment.