-
Notifications
You must be signed in to change notification settings - Fork 795
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
Require two consecutive successful productions when counting witnesses for LIB #2473
base: develop
Are you sure you want to change the base?
Conversation
b02731c
to
37c5186
Compare
37c5186
to
ff7b01f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR does not change tests yet still passes them. Due to the nature of the changes, this means that irreversibility tests either a) do not exist, or b) are not sufficient to detect significant changes in our irreversibility algorithm. From my reading of the code, these changes look good, but I would feel much better if they were accompanied by tests. A hard requirement is the scenario described in the EOS issue to show that these changes solve that problem.
w.total_missed++; | ||
if( has_hardfork( STEEM_HARDFORK_0_14__278 ) ) | ||
if( (_dgp.head_block_number - w.last_confirmed_block_num > STEEM_BLOCKS_PER_DAY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace
// increase for any blocks they missed in the gap. | ||
// Also, this prevents initminer from having a large total_missed. | ||
// | ||
|
||
w.total_missed++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be wrapped in the if( witness_missed.owner != b.witness )
conditional to preserve existing behavior.
This code implements the "Discount missing witnesses" solution for issue #2471.
PR #2472 is a dependency of this PR and should be merged before this PR.