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

Fix fork detector after double sign #1898

Merged

Conversation

SebastianMarian
Copy link
Contributor

  • Reduced time to wait after all signatures from 75% to 50% from signature total subround time (this will give more time for broadcast block to reach to all peers in useful time, instead of collecting more signatures. The problem is more evident in metachain where consensus group = eligible list, and if only one signature is missing the proposer will wait until 75% of signature subround time is reached)

  • Fixed a situation when two valid blocks with the same nonce and the same round (double signed situation) could triggered forks with bad consequences. (now, if there are two blocks with the same round and the same nonce, the fork is not triggered anymore if meantime was received a proposed block with a higher nonce)

…ature total subround time (this will give more time for broadcast block to reach to all peers in useful time, instead of collecting more signatures. The problem is more evident in metachain where consensus group = eligible list, and if only one signature is missing the proposer will wait until 75% of signature subround time is reached)

* Fixed a situation when two valid blocks with the same nonce and the same round (double signed situation) could triggered forks with bad consequences. (now, if there are two blocks with the same round and the same nonce, the fork is not triggered anymore if meantime was received a proposed block with a higher nonce)
@SebastianMarian SebastianMarian added the type:bug Something isn't working label Jun 9, 2020
@SebastianMarian SebastianMarian self-assigned this Jun 9, 2020
@sasurobert sasurobert self-requested a review June 9, 2020 14:53
sasurobert
sasurobert previously approved these changes Jun 9, 2020
iulianpascalau
iulianpascalau previously approved these changes Jun 9, 2020
Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

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

System tests passed.

@LucianMincu LucianMincu merged commit bbc5edb into release-candidate Jun 9, 2020
@LucianMincu LucianMincu deleted the Fix-fork-detector-in-meta-after-double-sign branch June 9, 2020 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants