Remove not needed node::minimum_principal_weight override

This commit is contained in:
Piotr Wójcik 2022-07-21 16:24:05 +02:00
commit eae7b35e1b
2 changed files with 1 additions and 7 deletions

View file

@ -809,12 +809,7 @@ nano::block_hash nano::node::rep_block (nano::account const & account_a)
nano::uint128_t nano::node::minimum_principal_weight ()
{
return minimum_principal_weight (online_reps.trended ());
}
nano::uint128_t nano::node::minimum_principal_weight (nano::uint128_t const & online_stake)
{
return online_stake / network_params.network.principal_weight_factor;
return online_reps.trended () / network_params.network.principal_weight_factor;
}
void nano::node::long_inactivity_cleanup ()

View file

@ -118,7 +118,6 @@ public:
nano::uint128_t weight (nano::account const &);
nano::block_hash rep_block (nano::account const &);
nano::uint128_t minimum_principal_weight ();
nano::uint128_t minimum_principal_weight (nano::uint128_t const &);
void ongoing_rep_calculation ();
void ongoing_bootstrap ();
void ongoing_peer_store ();