Skip to content

Commit

Permalink
Changed namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
RickiNano committed Oct 25, 2024
1 parent 2c6439f commit 6ff7a30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nano/node/bootstrap_weights_beta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <string>
#include <vector>

namespace nano
namespace nano::weights
{
// Bootstrap weights for beta generated 15-08-2024
std::vector<std::pair<std::string, std::string>> preconfigured_weights_beta = {
Expand Down
2 changes: 1 addition & 1 deletion nano/node/bootstrap_weights_live.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <string>
#include <vector>
namespace nano
namespace nano::weights
{
// Bootstrap weights for live generated 15-08-2024
std::vector<std::pair<std::string, std::string>> preconfigured_weights_live = {
Expand Down
6 changes: 3 additions & 3 deletions nano/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
double constexpr nano::node::price_max;
double constexpr nano::node::free_cutoff;

namespace nano
namespace nano::weights
{
extern std::vector<std::pair<std::string, std::string>> preconfigured_weights_live;
extern uint64_t max_blocks_live;
Expand Down Expand Up @@ -1198,8 +1198,8 @@ bool nano::node::init_error () const

std::pair<uint64_t, std::unordered_map<nano::account, nano::uint128_t>> nano::node::get_bootstrap_weights () const
{
std::vector<std::pair<std::string, std::string>> preconfigured_weights = network_params.network.is_live_network () ? preconfigured_weights_live : preconfigured_weights_beta;
uint64_t max_blocks = network_params.network.is_live_network () ? max_blocks_live : max_blocks_beta;
std::vector<std::pair<std::string, std::string>> preconfigured_weights = network_params.network.is_live_network () ? nano::weights::preconfigured_weights_live : nano::weights::preconfigured_weights_beta;
uint64_t max_blocks = network_params.network.is_live_network () ? nano::weights::max_blocks_live : nano::weights::max_blocks_beta;
std::unordered_map<nano::account, nano::uint128_t> weights;

for (const auto & entry : preconfigured_weights)
Expand Down

0 comments on commit 6ff7a30

Please sign in to comment.