-
Notifications
You must be signed in to change notification settings - Fork 671
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
Add config option tenure_last_block_proposal_timeout_secs and do not allow reorgs at tenure boundary before it is exceeded #5425
Conversation
…est that ensures reorgs can't happen before timeout Signed-off-by: Jacinta Ferrant <[email protected]>
6608fb6
to
67e254e
Compare
Signed-off-by: Jacinta Ferrant <[email protected]>
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.
LGTM!
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.
Approving for now, but I'm not sure this is guaranteed to prevent reorgs at tenure boundaries? It could be that some singers' slow networks cause them to:
- Accept and broadcast a signature on the last block of tenure N
B[N][-1]
- Wait for the allotted timeout to pass, but never see
B[N][-1]
get broadcast and processed - Accept and broadcast signatures for the first block of tenure N+1,
B[N+1][0]
, which conflicts withB[N][-1]
(i.e. has the same height).
Am I understanding this right? Is this okay?
Yep, your understanding is correct! it is not meant to prevent reorgs at the boundary. just to minimize them. Unfortunately, I do not think there is a way to prevent it without causing a chainstall :( We previously agreed that this was okay (see this comment) This chain stall case happens in the following scenario: Tenure A starts
Tenure B starts
Chain Halts
(@kantai @obycode am I remembering the chainstall case correctly?) Our response to this chainstall due to poorly timed block commits case was to enable signers to reorg the last block of the prior tenure. However, this caused legit globally accepted blocks due to network latency issues to be reorged when they really shouldn't have. Maybe this default should be much higher? However, in the actual chainstall case, the chain will halt for up to that config amount so prob shouldn't set it too much higher. |
… into feat/signer-times-out-end-of-tenure-blocks
Signed-off-by: Jacinta Ferrant <[email protected]>
Signed-off-by: Jacinta Ferrant <[email protected]>
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Closes #5423