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

Prioritize frontiers for background confirmation #1982

Merged

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented May 14, 2019

Updating the confirmation height for frontiers in the background (in the request loop) takes too long to get the cemented block count close to the total block count currently. The accounts are just searched from lowest account number onwards, which has now been improved by using the request loop wait period to scan through as many accounts as possible and prioritize the ones which have the most uncemented blocks. These are then voted on, which allows more efficient voting traffic as the larger unconfirmed accounts are more likely to confirm other accounts.

Some other parameters have also been modified to make confirming blocks more aggressive when the active root count is low.

@wezrule wezrule added the functionality quality improvements This item indicates the need for or supplies a better way to implement existing functionality label May 14, 2019
@wezrule wezrule added this to the V19.0 milestone May 14, 2019
@wezrule wezrule requested a review from SergiySW May 14, 2019 13:47
@wezrule wezrule self-assigned this May 14, 2019
Copy link
Contributor

@SergiySW SergiySW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after resolving conflict with master

@wezrule wezrule merged commit 8e515f0 into nanocurrency:master May 31, 2019
@wezrule wezrule deleted the prioritize_frontiers_for_confirming branch May 31, 2019 08:30
argakiig pushed a commit that referenced this pull request Jun 11, 2019
* Prioritize frontiers for background confirmation

* Remove priority_cemented_* to priority_cementable_*

* When active root transactions are low override the next_frontier_check

* Reduce io

* Formatting

* Review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functionality quality improvements This item indicates the need for or supplies a better way to implement existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants