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

Watch blocks separately in work watcher #2228

Merged

Conversation

guilhermelawless
Copy link
Contributor

@guilhermelawless guilhermelawless commented Aug 20, 2019

Note: Update this or #2218 based on which one gets merged first, to use limited active difficulty here. done

As the watcher previously worked on a loop and condition.wait_until it would happen that a block would be re-worked before the default 5 seconds had passed.

New version

  • Uses node alarms to be more accurate in the time between block confirmation + re-working
  • Now tracks each block separately
  • Time is now set after the previous work is complete
  • Removes work_watcher thread, work generation is done via the work pool

Passes tests but should be validated on beta.

Uses node alarms to be more accurate in the time between block confirmation + re-working
Time is now set after the previous work is complete
Removes work_watcher thread
@guilhermelawless guilhermelawless added functionality quality improvements This item indicates the need for or supplies a better way to implement existing functionality beta testing wanted labels Aug 20, 2019
@guilhermelawless guilhermelawless added this to the V20.0 milestone Aug 20, 2019
@guilhermelawless guilhermelawless self-assigned this Aug 20, 2019
@guilhermelawless guilhermelawless added the incomplete This item is incomplete and should not be merged if it is a pull request label Aug 23, 2019
Cancelling current and future blocks works consistently now because all work generation gets put into a queue
@guilhermelawless guilhermelawless removed the incomplete This item is incomplete and should not be merged if it is a pull request label Aug 26, 2019
@guilhermelawless guilhermelawless removed the request for review from wezrule August 27, 2019 10:41
@guilhermelawless guilhermelawless merged commit b796ec6 into nanocurrency:master Aug 27, 2019
@guilhermelawless guilhermelawless deleted the accurate-work-watcher branch August 27, 2019 10:42
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.

4 participants