Skip to content

Commit

Permalink
cmd/evm/t8n: Adds StorageProcessed flag (#443)
Browse files Browse the repository at this point in the history
* fix: add the storage processed flag to t8n.

* chore: cancun -> prague typo.
  • Loading branch information
spencer-tb authored May 22, 2024
1 parent 55b4260 commit dd7b258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cmd/evm/internal/t8ntool/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,14 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
ended := sdb.Transitioned()
if !ended {
var (
currentSlotHash = sdb.GetCurrentSlotHash()
started = sdb.InTransition()
currentSlotHash = sdb.GetCurrentSlotHash()
started = sdb.InTransition()
storageProcessed = sdb.GetStorageProcessed()
)
execRs.CurrentAccountAddress = sdb.GetCurrentAccountAddress()
execRs.CurrentSlotHash = &currentSlotHash
execRs.Started = &started
execRs.StorageProcessed = &storageProcessed
}
execRs.Ended = &ended
}
Expand Down
2 changes: 1 addition & 1 deletion core/state/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type Database interface {
// TrieDB retrieves the low level trie database used for data storage.
TrieDB() *trie.Database

StartVerkleTransition(originalRoot, translatedRoot common.Hash, chainConfig *params.ChainConfig, cancunTime *uint64, root common.Hash)
StartVerkleTransition(originalRoot, translatedRoot common.Hash, chainConfig *params.ChainConfig, pragueTime *uint64, root common.Hash)

ReorgThroughVerkleTransition()

Expand Down

0 comments on commit dd7b258

Please sign in to comment.