Skip to content

feat: compare world state root against block state root before storing block + fix libmdx impl#250

Merged
fmoletta merged 27 commits into
mainfrom
compare-state-root-execute-block
Aug 14, 2024
Merged

feat: compare world state root against block state root before storing block + fix libmdx impl#250
fmoletta merged 27 commits into
mainfrom
compare-state-root-execute-block

Conversation

@fmoletta

@fmoletta fmoletta commented Aug 13, 2024

Copy link
Copy Markdown
Contributor

Motivation

Validating the world state root against the state root in the block after executing payloads

Description

  • Compare world state root against state root in block header before storing the block in the DB
  • Fix broken lidmdx code when computing the world state root
  • Fix store execution framework so that it uses a clean db for each test
  • Add tests for the fixed methods

Closes None, but is part of #100

@fmoletta fmoletta changed the title [WIP] feat: compare world state root against block state root before storing block [WIP] feat: compare world state root against block state root before storing block + fix lidmdx implementation Aug 13, 2024
@fmoletta fmoletta changed the title [WIP] feat: compare world state root against block state root before storing block + fix lidmdx implementation [WIP] feat: compare world state root against block state root before storing block + fix lidmdx impl Aug 13, 2024
@fmoletta fmoletta changed the title [WIP] feat: compare world state root against block state root before storing block + fix lidmdx impl [WIP] feat: compare world state root against block state root before storing block + fix libmdx impl Aug 13, 2024
@fmoletta fmoletta changed the title [WIP] feat: compare world state root against block state root before storing block + fix libmdx impl feat: compare world state root against block state root before storing block + fix libmdx impl Aug 13, 2024
@fmoletta fmoletta marked this pull request as ready for review August 13, 2024 21:28
@fmoletta fmoletta requested a review from a team as a code owner August 13, 2024 21:28
@mpaulucci

mpaulucci commented Aug 14, 2024

Copy link
Copy Markdown
Collaborator

LGTM. One thing that is missing to close the ticket is that we want to validate that the incoming payload is the direct child of the head block. If it's not we should fail/panic since we don't support reorgs yet

@fmoletta

Copy link
Copy Markdown
Contributor Author

LGTM. One thing that is missing to close the ticket is that we want to validate that the incoming payload is the direct child of the head block. If it's not we should fail/panic since we don't support reorgs yet

Good catch!, I'll make a PR for it

@fmoletta fmoletta added this pull request to the merge queue Aug 14, 2024
Merged via the queue into main with commit 8cfa087 Aug 14, 2024
@fmoletta fmoletta deleted the compare-state-root-execute-block branch August 14, 2024 13:49
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