Remove decltype to reference nested class within nano::ledger
This commit is contained in:
		
					parent
					
						
							
								95df470f31
							
						
					
				
			
			
				commit
				
					
						af36d9ff35
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1297,7 +1297,7 @@ bool nano::node::init_error () const
 | 
			
		|||
	return store.init_error () || wallets_store.init_error ();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
std::pair<uint64_t, decltype (nano::ledger::bootstrap_weights)> nano::node::get_bootstrap_weights () const
 | 
			
		||||
std::pair<uint64_t, std::unordered_map<nano::account, nano::uint128_t>> nano::node::get_bootstrap_weights () const
 | 
			
		||||
{
 | 
			
		||||
	std::unordered_map<nano::account, nano::uint128_t> weights;
 | 
			
		||||
	uint8_t const * weight_buffer = network_params.network.is_live_network () ? nano_bootstrap_weights_live : nano_bootstrap_weights_beta;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -123,7 +123,7 @@ public:
 | 
			
		|||
	void ongoing_online_weight_calculation_queue ();
 | 
			
		||||
	bool online () const;
 | 
			
		||||
	bool init_error () const;
 | 
			
		||||
	std::pair<uint64_t, decltype (nano::ledger::bootstrap_weights)> get_bootstrap_weights () const;
 | 
			
		||||
	std::pair<uint64_t, std::unordered_map<nano::account, nano::uint128_t>> get_bootstrap_weights () const;
 | 
			
		||||
	uint64_t get_confirmation_height (store::transaction const &, nano::account &);
 | 
			
		||||
	/*
 | 
			
		||||
	 * Attempts to bootstrap block. This is the best effort, there is no guarantee that the block will be bootstrapped.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue