Community Patch 1 (from VoxPopuli Team) - removed low_active_elections check as if active elections> 500. Election limiting in handled by the election scheduler rather than by individual call sites. (#3540)
This commit is contained in:
		
					parent
					
						
							
								63f7b6853c
							
						
					
				
			
			
				commit
				
					
						608b4c4765
					
				
			
		
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -244,10 +244,7 @@ void nano::active_transactions::block_cemented_callback (std::shared_ptr<nano::b
 | 
			
		|||
		// Next-block activations are only done for blocks with previously active elections
 | 
			
		||||
		bool const was_active{ *election_status_type == nano::election_status_type::active_confirmed_quorum || *election_status_type == nano::election_status_type::active_confirmation_height };
 | 
			
		||||
 | 
			
		||||
		// Activations are only done if there is not a large amount of active elections, ensuring frontier confirmation takes place
 | 
			
		||||
		auto const low_active_elections = [this] { return this->size () < nano::active_transactions::max_active_elections_frontier_insertion / 2; };
 | 
			
		||||
 | 
			
		||||
		if (cemented_bootstrap_count_reached && was_active && low_active_elections ())
 | 
			
		||||
		if (cemented_bootstrap_count_reached && was_active)
 | 
			
		||||
		{
 | 
			
		||||
			// Start or vote for the next unconfirmed block
 | 
			
		||||
			scheduler.activate (account, transaction);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue