From af36d9ff358f9a3ba7fc9f7a915c33cb3c1839e9 Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Sun, 10 Mar 2024 16:49:32 +0000 Subject: [PATCH] Remove decltype to reference nested class within nano::ledger --- nano/node/node.cpp | 2 +- nano/node/node.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/node/node.cpp b/nano/node/node.cpp index 033a98860..f6a9cdeed 100644 --- a/nano/node/node.cpp +++ b/nano/node/node.cpp @@ -1297,7 +1297,7 @@ bool nano::node::init_error () const return store.init_error () || wallets_store.init_error (); } -std::pair nano::node::get_bootstrap_weights () const +std::pair> nano::node::get_bootstrap_weights () const { std::unordered_map weights; uint8_t const * weight_buffer = network_params.network.is_live_network () ? nano_bootstrap_weights_live : nano_bootstrap_weights_beta; diff --git a/nano/node/node.hpp b/nano/node/node.hpp index 3c09cff68..4f52fdddf 100644 --- a/nano/node/node.hpp +++ b/nano/node/node.hpp @@ -123,7 +123,7 @@ public: void ongoing_online_weight_calculation_queue (); bool online () const; bool init_error () const; - std::pair get_bootstrap_weights () const; + std::pair> 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.