Skip to content

Commit

Permalink
Fixing formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed May 9, 2018
1 parent e5ba6db commit 279c7b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rai/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3020,7 +3020,7 @@ std::shared_ptr<rai::node> rai::node::shared ()
return shared_from_this ();
}

bool rai::vote_info::operator < (rai::vote const & vote_a) const
bool rai::vote_info::operator< (rai::vote const & vote_a) const
{
return sequence < vote_a.sequence || (sequence == vote_a.sequence && hash < vote_a.block->hash ());
}
Expand Down Expand Up @@ -3211,7 +3211,7 @@ void rai::active_transactions::announce_votes ()
if (i->announcements % announcement_min == 2)
{
auto reps (std::make_shared<std::vector<rai::peer_information>> (node.peers.representatives (std::numeric_limits<size_t>::max ())));

for (auto j (reps->begin ()), m (reps->end ()); j != m;)
{
auto & rep_votes (i->election->votes.rep_votes);
Expand Down
2 changes: 1 addition & 1 deletion rai/node/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class vote_info
std::chrono::steady_clock::time_point time;
uint64_t sequence;
rai::block_hash hash;
bool operator < (rai::vote const &) const;
bool operator< (rai::vote const &) const;
};
class election : public std::enable_shared_from_this<rai::election>
{
Expand Down

0 comments on commit 279c7b9

Please sign in to comment.