besu icon indicating copy to clipboard operation
besu copied to clipboard

[VERKLE] transition DRAFT

Open garyschulte opened this issue 1 year ago • 0 comments

PR description

DRAFT STATUS

This is a WIP for verkle transition. Requires: start with a full-flat bonsai database

  • moves verkle trie and trie logs to separate segments
  • creates a new DataStorageFormat for VERKLE_TRANSITION which comprises all the segments of bonsai and verkle
  • creates a TransitionContext for managing and dispatching verkle transition events to subscribers
  • creates a composed transition worldstate from bonsai and verkle
  • creates a composed transition worldstate provider

TODO: per-block copy process flesh out composed transition worldstate provider fork subscriber to initiate/rollback transition

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

  • [ ] Checked out our contribution guidelines?
  • [ ] Considered documentation and added the doc-change-required label to this PR if updates are required.
  • [ ] Considered the changelog and included an update if required.
  • [ ] For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • [ ] unit tests: ./gradlew build
  • [ ] acceptance tests: ./gradlew acceptanceTest
  • [ ] integration tests: ./gradlew integrationTest
  • [ ] reference tests: ./gradlew ethereum:referenceTests:referenceTests

garyschulte avatar May 16 '24 09:05 garyschulte