Removing timestamp changing and re-signing as this is re-testing something that's already tested above, signature correctness with respect to vote contents.
This commit is contained in:
		
					parent
					
						
							
								d3ad6a05ba
							
						
					
				
			
			
				commit
				
					
						fb8e912dfc
					
				
			
		
					 1 changed files with 0 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -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));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue