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

Try to avoid being marked as a bad quorum member when we sleep for too long in SleepBeforePhase #3245

Merged
merged 3 commits into from
Dec 31, 2019

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Dec 16, 2019

The issue should not happen a lot naturally and withholding blocks to cause potential issues intentionally is risky and costly due to ChainLocks. Plus randomSleepFactor should mostly mitigate the issue already too. However these few additional tweaks could help to bring the probability of such an event even lower I think.

Pls see individual commits.

Thanks to @MrDefacto for pointing out a potential issue.

@UdjinM6 UdjinM6 added this to the 15 milestone Dec 16, 2019
Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 merged commit 8b0bb9c into dashpay:develop Dec 31, 2019
UdjinM6 added a commit to UdjinM6/dash that referenced this pull request Jan 10, 2020
…o long in SleepBeforePhase (dashpay#3245)

* Do not sleep at the last block of the phase, it's not safe

* Refactor it a bit to make it clearer what's going on here

* Stop sleeping if blocks came faster than we expected
barrystyle pushed a commit to PACGlobalOfficial/PAC that referenced this pull request Jan 22, 2020
…o long in SleepBeforePhase (dashpay#3245)

* Do not sleep at the last block of the phase, it's not safe

* Refactor it a bit to make it clearer what's going on here

* Stop sleeping if blocks came faster than we expected
FornaxA pushed a commit to ioncoincore/ion that referenced this pull request Jul 6, 2020
…o long in SleepBeforePhase (dashpay#3245)

* Do not sleep at the last block of the phase, it's not safe

* Refactor it a bit to make it clearer what's going on here

* Stop sleeping if blocks came faster than we expected

Signed-off-by: cevap <[email protected]>
@UdjinM6 UdjinM6 deleted the wakeupfaster branch November 26, 2020 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants