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

Constrained successor and destination block activation #2895

Merged

Conversation

guilhermelawless
Copy link
Contributor

  • Activations only on active_confirmed_quorum or active_confirmation_height, which are the blocks/accounts of interest
  • Only activate after cementing hardcoded bootstrap block count
  • Limit activation of successor/destination elections based on roots size

@guilhermelawless guilhermelawless added quality improvements This item indicates the need for or supplies changes that improve maintainability performance Performance/resource utilization improvement blocker Some future items cannot be completed until this is merged. labels Aug 26, 2020
@guilhermelawless guilhermelawless added this to the V21.2 milestone Aug 26, 2020
@guilhermelawless guilhermelawless self-assigned this Aug 26, 2020
bool const was_active{ *election_status_type == nano::election_status_type::active_confirmed_quorum || *election_status_type == nano::election_status_type::active_confirmation_height };

// Activations are only done if there is not a large amount of active elections, ensuring frontier confirmation takes place
auto const low_active_elections = [this] { return this->size () < nano::active_transactions::max_active_elections_frontier_insertion / 2; };
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem to need a lambda.

@guilhermelawless guilhermelawless merged commit f89451d into nanocurrency:develop Aug 27, 2020
@guilhermelawless guilhermelawless removed the blocker Some future items cannot be completed until this is merged. label Aug 27, 2020
@guilhermelawless guilhermelawless deleted the active/lean-activate branch August 27, 2020 13:16
guilhermelawless added a commit that referenced this pull request Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance/resource utilization improvement quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants