diff --git a/rai/node/node.cpp b/rai/node/node.cpp index 3a41211408..f7121be591 100644 --- a/rai/node/node.cpp +++ b/rai/node/node.cpp @@ -3020,7 +3020,7 @@ std::shared_ptr 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 ()); } @@ -3211,7 +3211,7 @@ void rai::active_transactions::announce_votes () if (i->announcements % announcement_min == 2) { auto reps (std::make_shared> (node.peers.representatives (std::numeric_limits::max ()))); - + for (auto j (reps->begin ()), m (reps->end ()); j != m;) { auto & rep_votes (i->election->votes.rep_votes); diff --git a/rai/node/node.hpp b/rai/node/node.hpp index b7913a3c16..47f8cf900d 100644 --- a/rai/node/node.hpp +++ b/rai/node/node.hpp @@ -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 {