Skip to content

Commit

Permalink
include withdraw root in witness
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Jan 3, 2025
1 parent 70acaeb commit ea3ec93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
"github.com/scroll-tech/go-ethereum/log"
"github.com/scroll-tech/go-ethereum/rlp"
"github.com/scroll-tech/go-ethereum/rollup/ccc"
"github.com/scroll-tech/go-ethereum/rollup/rcfg"
"github.com/scroll-tech/go-ethereum/rpc"
"github.com/scroll-tech/go-ethereum/trie"
)
Expand Down Expand Up @@ -348,6 +349,9 @@ func generateWitness(blockchain *core.BlockChain, block *types.Block) (*stateles
return nil, fmt.Errorf("failed to retrieve parent state: %w", err)
}

// Collect storage locations that prover needs but sequencer might not touch necessarily
statedb.GetState(rcfg.L2MessageQueueAddress, rcfg.WithdrawTrieRootSlot)

statedb.StartPrefetcher("debug_execution_witness", witness)
defer statedb.StopPrefetcher()

Expand Down

0 comments on commit ea3ec93

Please sign in to comment.