From fb8e912dfc07cb20392a1e7357c8d62d5e04a2a8 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Wed, 27 Oct 2021 14:11:22 +0100 Subject: [PATCH] Removing timestamp changing and re-signing as this is re-testing something that's already tested above, signature correctness with respect to vote contents. --- nano/core_test/vote_processor.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nano/core_test/vote_processor.cpp b/nano/core_test/vote_processor.cpp index 3f515589c..4767199fa 100644 --- a/nano/core_test/vote_processor.cpp +++ b/nano/core_test/vote_processor.cpp @@ -37,12 +37,6 @@ TEST (vote_processor, codes) // Invalid takes precedence ASSERT_EQ (nano::vote_code::invalid, node.vote_processor.vote_blocking (vote_invalid, channel)); - // A higher timestamp is not a replay - ++vote->timestamp; - ASSERT_EQ (nano::vote_code::invalid, node.vote_processor.vote_blocking (vote, channel)); - vote->signature = nano::sign_message (key.prv, key.pub, vote->hash ()); - ASSERT_EQ (nano::vote_code::vote, node.vote_processor.vote_blocking (vote, channel)); - // Once the election is removed (confirmed / dropped) the vote is again indeterminate node.active.erase (*nano::dev::genesis); ASSERT_EQ (nano::vote_code::indeterminate, node.vote_processor.vote_blocking (vote, channel));