Remove decltype to reference nested class within nano::ledger

This commit is contained in:
Colin LeMahieu 2024-03-10 16:49:32 +00:00
commit af36d9ff35
No known key found for this signature in database
GPG key ID: 43708520C8DFB938
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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.