Skip to content
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

Merged
merged 8 commits into from
Mar 10, 2024

Conversation

pwojcikdev
Copy link
Contributor

This PR separates calculating representative tiers from vote processor class. Rep tiers will be used for prioritization of vote processing and rebroadcasting.

representatives_2.clear ();
representatives_3.clear ();

auto online = online_reps.online ();
Copy link
Contributor

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.

Copy link
Contributor Author

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.

# Conflicts:
#	nano/node/node.cpp
clemahieu
clemahieu previously approved these changes Mar 10, 2024
@pwojcikdev pwojcikdev merged commit 8dd0bf9 into nanocurrency:develop Mar 10, 2024
25 of 27 checks passed
@pwojcikdev pwojcikdev deleted the vote-processor-tiers branch March 10, 2024 21:01
@qwahzi qwahzi added this to the V27 milestone Mar 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Merged / V27.0
Development

Successfully merging this pull request may close these issues.

3 participants