From cb3c30d9213eef90d09b181eb83fe5eb91cbc5b5 Mon Sep 17 00:00:00 2001 From: Dimitrios Siganos Date: Sat, 27 Jan 2024 00:57:35 +0700 Subject: [PATCH] fix and improvement --- nano/core_test/active_transactions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/core_test/active_transactions.cpp b/nano/core_test/active_transactions.cpp index 54921071b3..70ac0ba8fc 100644 --- a/nano/core_test/active_transactions.cpp +++ b/nano/core_test/active_transactions.cpp @@ -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 (key.pub, key.prv, 0, 0, std::vector{ 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