Skip to content

feat: Clean up StateDB methods, bump revm#238

Open
0xForerunner wants to merge 2 commits intoalloy-rs:mainfrom
0xForerunner:state-db-methods
Open

feat: Clean up StateDB methods, bump revm#238
0xForerunner wants to merge 2 commits intoalloy-rs:mainfrom
0xForerunner:state-db-methods

Conversation

@0xForerunner
Copy link
Contributor

@0xForerunner 0xForerunner commented Dec 4, 2025

This PR removes unnecessary methods from StateDB in favour of using DatabaseCommitExt. See #234 and this pr for more details.

Additionally we've added a few more trait methods to abstract away from revm::State.

You can see why this is required by taking a look at this pr into reth.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@0xForerunner
Copy link
Contributor Author

Apologies for the delay @mattsse @klkvr, looks like I forgot about this for a while. Should be ready to go as everything has been merged in revm

@0xForerunner
Copy link
Contributor Author

@mattsse @klkvr Bumping

@klkvr
Copy link
Member

klkvr commented Feb 25, 2026

iiuc those changes are needed just to make BasicBlockBuilder work with this in reth? I'd be fine with it just using &mut State<DB>

@0xForerunner
Copy link
Contributor Author

@klkvr We need the extra trait methods for this PR into reth.

The ultimate reason is for block access lists. We have a BAL implementation which requires the use of a wrapper type around State. This isn't possible without these methods.

@0xForerunner
Copy link
Contributor Author

@klkvr just rebased on main. Should be good to go!

@klkvr
Copy link
Member

klkvr commented Feb 27, 2026

@0xForerunner it's still not obvious to me why we need those methods to be honest. does your BAL implementation require the block builder to hold your custom database?

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