-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dedicated rep_tiers
class
#4471
Dedicated rep_tiers
class
#4471
Conversation
nano/node/vote_processor.cpp
Outdated
representatives_2.clear (); | ||
representatives_3.clear (); | ||
|
||
auto online = online_reps.online (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want to change this from online_reps.trended (). Trended has hysteresis if the network is partitioned or the node is disconnected but online_reps.online doesn't, and might be 0 if the node is disconnected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, my goal was for it to be able to react to rep availability changes faster, but thinking about it now, trended makes more sense.
2eb60ab
to
c36197d
Compare
# Conflicts: # nano/node/node.cpp
8913d66
to
e62602c
Compare
This PR separates calculating representative tiers from vote processor class. Rep tiers will be used for prioritization of vote processing and rebroadcasting.