Start elections for all forks of unconfirmed blocks (#1815)
instead of elections only for bootstrap forks
This commit is contained in:
		
					parent
					
						
							
								9e71239479
							
						
					
				
			
			
				commit
				
					
						e85435474a
					
				
			
		
					 1 changed files with 2 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -470,12 +470,8 @@ nano::process_return nano::block_processor::process_one (nano::transaction const
 | 
			
		|||
		}
 | 
			
		||||
		case nano::process_result::fork:
 | 
			
		||||
		{
 | 
			
		||||
			if (info_a.modified < nano::seconds_since_epoch () - 15)
 | 
			
		||||
			{
 | 
			
		||||
				// Only let the bootstrap attempt know about forked blocks that not originate recently.
 | 
			
		||||
			node.process_fork (transaction_a, info_a.block);
 | 
			
		||||
			node.stats.inc (nano::stat::type::ledger, nano::stat::detail::fork, nano::stat::dir::in);
 | 
			
		||||
			}
 | 
			
		||||
			if (node.config.logging.ledger_logging ())
 | 
			
		||||
			{
 | 
			
		||||
				node.logger.try_log (boost::str (boost::format ("Fork for: %1% root: %2%") % hash.to_string () % info_a.block->root ().to_string ()));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue