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 duplicate block bug #10735

Merged
merged 2 commits into from
Apr 28, 2022
Merged

Fix duplicate block bug #10735

merged 2 commits into from
Apr 28, 2022

Conversation

nholland94
Copy link
Member

Fixes bug reported in #10717.

The transition frontier would crash if a diff was applied to it which adds a breadcrumb that already exists in the frontier. If 2 block producing nodes are running with the same keypair, and generate the same staged ledger diff when producing their block, then this issue can happen. The fix is to just log a message instead of crashing.

@nholland94 nholland94 added bug ci-build-me Add this label to trigger a circle+buildkite build for this branch labels Apr 11, 2022
@nholland94 nholland94 requested a review from a team as a code owner April 11, 2022 18:45
Copy link
Member

@mrmr1993 mrmr1993 left a comment

Choose a reason for hiding this comment

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

1 nit, but lgtm otherwise

src/lib/transition_frontier/full_frontier/full_frontier.ml Outdated Show resolved Hide resolved
@nholland94 nholland94 merged commit c4c5ada into compatible Apr 28, 2022
@nholland94 nholland94 deleted the fix/duplicate-block-bug branch April 28, 2022 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ci-build-me Add this label to trigger a circle+buildkite build for this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants