Fixing narrowing conversion warning and updating style. (#3901)
This commit is contained in:
		
					parent
					
						
							
								64d6b59e55
							
						
					
				
			
			
				commit
				
					
						5130d3c542
					
				
			
		
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -513,11 +513,11 @@ TEST (store, unchecked_load)
 | 
			
		|||
 | 
			
		||||
TEST (store, vote_load)
 | 
			
		||||
{
 | 
			
		||||
	nano::test::system system (1);
 | 
			
		||||
	auto & node (*system.nodes[0]);
 | 
			
		||||
	for (auto i (0); i < 1000000; ++i)
 | 
			
		||||
	nano::test::system system{ 1 };
 | 
			
		||||
	auto & node = *system.nodes[0];
 | 
			
		||||
	for (auto i = 0u; i < 1000000u; ++i)
 | 
			
		||||
	{
 | 
			
		||||
		auto vote (std::make_shared<nano::vote> (nano::dev::genesis_key.pub, nano::dev::genesis_key.prv, i, 0, std::vector<nano::block_hash>{ i }));
 | 
			
		||||
		auto vote = std::make_shared<nano::vote> (nano::dev::genesis_key.pub, nano::dev::genesis_key.prv, i, 0, std::vector<nano::block_hash>{ i });
 | 
			
		||||
		node.vote_processor.vote (vote, std::make_shared<nano::transport::inproc::channel> (node, node));
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue