Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev authored and clemahieu committed Nov 30, 2022
1 parent 20d11a7 commit ce52a8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions nano/node/backlog_population.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class backlog_population final
bool enabled;

/** Number of accounts per second to process. Number of accounts per single batch is this value divided by `frequency` */
uint64_t rate;
unsigned rate;

/** Number of batches to run per second. Batches run in 1 second / `frequency` intervals */
uint frequency;
unsigned frequency;
};

backlog_population (const config &, nano::store &, nano::stat &);
Expand Down
6 changes: 3 additions & 3 deletions nano/node/nodeconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ nano::error nano::node_config::serialize_toml (nano::tomlconfig & toml) const
toml.put ("frontiers_confirmation", serialize_frontiers_confirmation (frontiers_confirmation), "Mode controlling frontier confirmation rate.\ntype:string,{auto,always,disabled}");
toml.put ("max_queued_requests", max_queued_requests, "Limit for number of queued confirmation requests for one channel, after which new requests are dropped until the queue drops below this value.\ntype:uint32");
toml.put ("rep_crawler_weight_minimum", rep_crawler_weight_minimum.to_string_dec (), "Rep crawler minimum weight, if this is less than minimum principal weight then this is taken as the minimum weight a rep must have to be tracked. If you want to track all reps set this to 0. If you do not want this to influence anything then set it to max value. This is only useful for debugging or for people who really know what they are doing.\ntype:string,amount,raw");
toml.put ("backlog_scan_rate", backlog_scan_rate, "Number of accounts per second to process when doing backlog population scan. Increasing this value will help unconfirmed frontiers get into election prioritization queue faster, however it will also increase resource usage. \ntype:unit64");
toml.put ("backlog_scan_rate", backlog_scan_rate, "Number of accounts per second to process when doing backlog population scan. Increasing this value will help unconfirmed frontiers get into election prioritization queue faster, however it will also increase resource usage. \ntype:unit");
toml.put ("backlog_scan_frequency", backlog_scan_frequency, "Backlog scan divides the scan into smaller batches, number of which is controlled by this value. Higher frequency helps to utilize resources more uniformly, however it also introduces more overhead. The resulting number of accounts per single batch is `backlog_scan_rate / backlog_scan_frequency` \ntype:uint");

auto work_peers_l (toml.create_array ("work_peers", "A list of \"address:port\" entries to identify work peers."));
Expand Down Expand Up @@ -400,8 +400,8 @@ nano::error nano::node_config::deserialize_toml (nano::tomlconfig & toml)
frontiers_confirmation = deserialize_frontiers_confirmation (frontiers_confirmation_l);
}

toml.get<uint64_t> ("backlog_scan_rate", backlog_scan_rate);
toml.get<uint> ("backlog_scan_frequency", backlog_scan_frequency);
toml.get<unsigned> ("backlog_scan_rate", backlog_scan_rate);
toml.get<unsigned> ("backlog_scan_frequency", backlog_scan_frequency);

if (toml.has_key ("experimental"))
{
Expand Down
4 changes: 2 additions & 2 deletions nano/node/nodeconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ class node_config
nano::lmdb_config lmdb_config;
nano::frontiers_confirmation_mode frontiers_confirmation{ nano::frontiers_confirmation_mode::automatic };
/** Number of accounts per second to process when doing backlog population scan */
uint64_t backlog_scan_rate{ 10 * 1000 };
unsigned backlog_scan_rate{ 10 * 1000 };
/** Number of times per second to run backlog population batches. Number of accounts per single batch is `backlog_scan_rate / backlog_scan_frequency` */
uint backlog_scan_frequency{ 10 };
unsigned backlog_scan_frequency{ 10 };

public:
std::string serialize_frontiers_confirmation (nano::frontiers_confirmation_mode) const;
Expand Down

0 comments on commit ce52a8f

Please sign in to comment.