Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in 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.

@pwojcikdev pwojcikdev requested review from clemahieu and dsiganos March 8, 2024 11:13
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.

@pwojcikdev pwojcikdev force-pushed the vote-processor-tiers branch from 2eb60ab to c36197d Compare March 9, 2024 10:49
# Conflicts:
#	nano/node/node.cpp
@pwojcikdev pwojcikdev force-pushed the vote-processor-tiers branch from 8913d66 to e62602c Compare March 9, 2024 11:01
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged / V27.0
Development

Successfully merging this pull request may close these issues.

3 participants