diff --git a/nano/secure/ledger.cpp b/nano/secure/ledger.cpp index e650276b..11544e11 100644 --- a/nano/secure/ledger.cpp +++ b/nano/secure/ledger.cpp @@ -1605,7 +1605,7 @@ nano::uncemented_info::uncemented_info (nano::block_hash const & cemented_fronti std::unique_ptr nano::collect_container_info (ledger & ledger, std::string const & name) { - auto count = ledger.bootstrap_weights_size.load (); + auto count = ledger.bootstrap_weights.size (); auto sizeof_element = sizeof (decltype (ledger.bootstrap_weights)::value_type); auto composite = std::make_unique (name); composite->add_component (std::make_unique (container_info{ "bootstrap_weights", count, sizeof_element })); diff --git a/nano/secure/ledger.hpp b/nano/secure/ledger.hpp index 489cf785..3eb14b46 100644 --- a/nano/secure/ledger.hpp +++ b/nano/secure/ledger.hpp @@ -77,7 +77,6 @@ public: nano::ledger_cache cache; nano::stat & stats; std::unordered_map bootstrap_weights; - std::atomic bootstrap_weights_size{ 0 }; uint64_t bootstrap_weight_max_blocks{ 1 }; std::atomic check_bootstrap_weights; bool pruning{ false };