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

Trending active_transactions difficulty for an average #1858

Merged
merged 12 commits into from
Mar 30, 2019
Merged

Trending active_transactions difficulty for an average #1858

merged 12 commits into from
Mar 30, 2019

Conversation

argakiig
Copy link
Contributor

Provide active_transactions.active_difficulty for 5 min trended avg of adjusted_difficulty in active_transactions
alternative to #1725

Russel Waters added 3 commits March 25, 2019 11:03
@argakiig argakiig added enhancement quality improvements This item indicates the need for or supplies changes that improve maintainability unit test Related to a new, changed or fixed unit test rpc nonbreaking change labels Mar 25, 2019
@argakiig argakiig added this to the V19.0 milestone Mar 25, 2019
@argakiig argakiig self-assigned this Mar 25, 2019
@argakiig
Copy link
Contributor Author

This is part of #1336

simplify roots avg calculation
initialize circular buffer with threshold
Copy link
Contributor

@clemahieu clemahieu left a comment

Choose a reason for hiding this comment

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

Looks good after these changes.

Russel Waters added 3 commits March 26, 2019 14:20
init active_difficulty and difficulty_cb
use std::accumulate
rework test for active_difficulty polling
cleanup and assert if not threshold
@argakiig argakiig requested review from cryptocode, wezrule and clemahieu and removed request for wezrule March 26, 2019 20:13
Copy link
Contributor

@cryptocode cryptocode left a comment

Choose a reason for hiding this comment

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

LGTM

@argakiig argakiig merged commit dd46609 into nanocurrency:master Mar 30, 2019
guilhermelawless pushed a commit to guilhermelawless/nano-node that referenced this pull request Apr 15, 2019
…1858)

* difficulty polled into a circular buffer
active_difficulty stored as atomic instead of function call

* Adjust for 5 min trend

* rpc to expose active_difficulty

* use qualified root
simplify roots avg calculation
initialize circular buffer with threshold

* remove deadline and system poll
init active_difficulty and difficulty_cb
use std::accumulate
rework test for active_difficulty polling
cleanup and assert if not threshold

* missed usage of accumulate

* use nano::uint128_t when applicable

* merge cleanup

* correct initialization order.
@zhyatt zhyatt added the major This item indicates the need for or supplies a major or notable change label Apr 27, 2019
@argakiig argakiig added the documentation This item indicates the need for or supplies updated or expanded documentation label May 4, 2019
@argakiig argakiig deleted the confirmed_difficulty branch July 3, 2019 03:53
@zhyatt zhyatt removed the documentation This item indicates the need for or supplies updated or expanded documentation label Jul 11, 2019
@zhyatt zhyatt added rpc Changes related to Remote Procedure Calls and removed rpc nonbreaking change labels Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement major This item indicates the need for or supplies a major or notable change quality improvements This item indicates the need for or supplies changes that improve maintainability rpc Changes related to Remote Procedure Calls unit test Related to a new, changed or fixed unit test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants