From ea3ec93d8c1e379bfd7957d4866f204d8d71237c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Fri, 3 Jan 2025 11:28:39 +0300 Subject: [PATCH] include withdraw root in witness --- eth/api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eth/api.go b/eth/api.go index 8e182a046b4a..07f5874037c8 100644 --- a/eth/api.go +++ b/eth/api.go @@ -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" ) @@ -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()