Skip to content

core/state: fix GetWriteMapDump write-set output#2156

Open
AaronAjose wants to merge 1 commit into0xPolygon:developfrom
AaronAjose:fix-statedb-write-map-dump
Open

core/state: fix GetWriteMapDump write-set output#2156
AaronAjose wants to merge 1 commit into0xPolygon:developfrom
AaronAjose:fix-statedb-write-map-dump

Conversation

@AaronAjose
Copy link
Copy Markdown

• # Description

This PR fixes GetWriteMapDump so it emits the actual MV write set instead of incorrectly reusing the read set, and adds a regression test to keep the read/write dump semantics correct for block-stm IO tracing.

Changes

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • Changes only for a subset of nodes

Nodes audience

Not applicable. This change is not limited to a subset of nodes and does not introduce any new flag or rollout condition.

Checklist

  • I have added at least 2 reviewer or the whole pos-v1 team
  • I have added sufficient documentation in code
  • I will be resolving comments - if any - by pushing each fix in a separate commit and linking the commit hash in the comment reply
  • Created a task in Jira and informed the team for implementation in Erigon client (if applicable)
  • Includes RPC methods changes, and the Notion documentation has been updated

Cross repository changes

  • This PR requires changes to heimdall
    • In case link the PR here:
  • This PR requires changes to matic-cli
    • In case link the PR here:

Testing

  • I have added unit tests
  • I have added tests to CI
  • I have tested this code manually on local environment
  • I have tested this code manually on remote devnet using express-cli
  • I have tested this code manually on amoy
  • I have created new e2e tests into express-cli

Additional comments

Automated validation executed for this change:

  • go test ./core/state -run "TestDumpMapsUseCorrectReadWriteSets|TestMVHashMapReadWriteDelete"
  • go test ./core/state
  • go test ./eth/tracers -run TestTraceBlock
  • go test ./eth/tracers
  • go vet ./core/state ./eth/tracers

Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review.

Tip: disable this comment in your organization's Code Review settings.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@cffls cffls left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

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