reth icon indicating copy to clipboard operation
reth copied to clipboard

feat: Make DatabaseStateRoot stateful

Open iTranscend opened this issue 7 months ago • 0 comments
trafficstars

This PR

  • converts DatabaseStateRoot into a regular stateful trait that takes in &self.
  • moves the from_tx method to a new trait StateRootFromTx implemented by StateRoot
  • transfers the responsibility of managing a tx ref to the trait implementer (StateRoot in this case)

resolves: https://github.com/paradigmxyz/reth/issues/15478

iTranscend avatar Apr 16 '25 00:04 iTranscend