Fixing formatting.
This commit is contained in:
parent
b8dbbbf158
commit
601912b138
4 changed files with 5 additions and 5 deletions
|
@ -3436,5 +3436,5 @@ TEST (rpc, online_reps)
|
|||
auto item (representatives.begin ());
|
||||
ASSERT_NE (representatives.end (), item);
|
||||
ASSERT_EQ (rai::test_genesis_key.pub.to_account (), item->first);
|
||||
system.nodes [1]->stop ();
|
||||
system.nodes[1]->stop ();
|
||||
}
|
||||
|
|
|
@ -2506,10 +2506,10 @@ rai::uint128_t rai::online_reps::online_stake ()
|
|||
return online_stake_total;
|
||||
}
|
||||
|
||||
std::deque<rai::account> rai::online_reps::list()
|
||||
std::deque<rai::account> rai::online_reps::list ()
|
||||
{
|
||||
std::deque<rai::account> result;
|
||||
std::lock_guard <std::mutex> lock (mutex);
|
||||
std::lock_guard<std::mutex> lock (mutex);
|
||||
for (auto i (reps.begin ()), n (reps.end ()); i != n; ++i)
|
||||
{
|
||||
result.push_back (i->representative);
|
||||
|
|
|
@ -310,7 +310,7 @@ public:
|
|||
void vote (std::shared_ptr<rai::vote> const &);
|
||||
void recalculate_stake ();
|
||||
rai::uint128_t online_stake ();
|
||||
std::deque<rai::account> list();
|
||||
std::deque<rai::account> list ();
|
||||
boost::multi_index_container<
|
||||
rai::rep_last_heard_info,
|
||||
boost::multi_index::indexed_by<
|
||||
|
|
|
@ -2811,7 +2811,7 @@ void rai::rpc_handler::representatives ()
|
|||
response (response_l);
|
||||
}
|
||||
|
||||
void rai::rpc_handler::representatives_online()
|
||||
void rai::rpc_handler::representatives_online ()
|
||||
{
|
||||
boost::property_tree::ptree response_l;
|
||||
boost::property_tree::ptree representatives;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue