formatting

This commit is contained in:
gr0vity-dev 2024-05-06 13:38:06 +02:00
commit b600e3a759
3 changed files with 13 additions and 17 deletions

View file

@ -766,7 +766,6 @@ std::unique_ptr<nano::container_info_component> nano::recently_cemented_cache::c
return composite;
}
/*
* active_transactions_config
*/

View file

@ -44,25 +44,22 @@ namespace nano
class active_transactions_config final
{
public:
explicit active_transactions_config (nano::network_constants const &);
explicit active_transactions_config (nano::network_constants const &);
nano::error deserialize (nano::tomlconfig & toml);
nano::error serialize (nano::tomlconfig & toml) const;
nano::error deserialize (nano::tomlconfig & toml);
nano::error serialize (nano::tomlconfig & toml) const;
public:
// Maximum number of simultaneous active elections (AEC size)
std::size_t size{ 5000 };
// Limit of hinted elections as percentage of `active_elections_size`
std::size_t hinted_limit_percentage{ 20 };
// Limit of optimistic elections as percentage of `active_elections_size`
std::size_t optimistic_limit_percentage{ 10 };
// Maximum number of simultaneous active elections (AEC size)
std::size_t size{ 5000 };
// Limit of hinted elections as percentage of `active_elections_size`
std::size_t hinted_limit_percentage{ 20 };
// Limit of optimistic elections as percentage of `active_elections_size`
std::size_t optimistic_limit_percentage{ 10 };
// Maximum confirmation history size
std::size_t confirmation_history_size{ 2048 };
// Maximum cache size for recently_confirmed
std::size_t confirmation_cache{ 65536 };
};
class recently_confirmed_cache final