Skip to content

fix: incorrect uniqueness constraint on consensus db #786

Merged
kant777 merged 2 commits intomainfrom
leader-fix
Sep 12, 2025
Merged

fix: incorrect uniqueness constraint on consensus db #786
kant777 merged 2 commits intomainfrom
leader-fix

Conversation

@shaspitz
Copy link
Copy Markdown
Contributor

@shaspitz shaspitz commented Sep 12, 2025

Before this PR, if the leader CL node were to restart, it would enter a broken state where the resumed payloads were not being saved to the DB because of an incorrect uniqueness constraint on the payload's payloadID. Note payloadID is opaque to the consensus layer and should not be used as a uniqueness identifier. blockNum is the correct uniqueness ID to use for payloads.

I've also removed some debug logs in this PR that were spammy during debugging and are not useful.

@kant777 kant777 merged commit d1f4fe7 into main Sep 12, 2025
7 checks passed
@kant777 kant777 deleted the leader-fix branch September 12, 2025 08:10
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.

3 participants