You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
op-reth-test-engine: serve the debug_ methods kona-host needs #23344
Serve the debug_ methods kona-host super calls on its L2 node. These are what production op-reth serves to kona-host: eth_getProof, eth_getBlockBy* and eth_chainId are served already, and IPC is enough (no HTTP listener).
debug_getRawHeader, debug_getRawReceipts, debug_dbGet (code form): mount reth's DebugApi over the existing OpEthApi. It needs a reth_tasks::Runtime on the current tokio handle.
optest_dumpAccounts(blockHash, addresses): full account and storage state for the pre-fork state generator. reth's debug_dumpBlock and debug_storageRangeAt are stubs. Implement it by merging genesis plain state with the canonical in-memory blocks' bundle states, honoring storage wipes.
Socket-path accessor for kona-host:ipc.Proc.Path → testengine.Client.SocketPath → L2Engine.RPCEndpoint. The socket path is already owned by Proc.
Tests:
Raw header and receipts round-trip.
Witness check: debug_executePayload for a built block's parent and attributes returns the parent state-root node and the code of touched contracts.
Dump of a predeploy after a storage change.
Risks:
A witness gap hangs instead of failing. reth's debug_dbGet serves code only. So a node outside the witness is unservable, and kona-host retries forever. Production op-reth would hit the same gap.
Witness cost grows with chain length. The witness is computed over the in-memory overlay, which is the production path for unpersisted blocks. Each call merges every in-memory block, so a from-genesis proof sweep is quadratic in chain length. That is fine at action-test sizes.
A parent on a reorged-out fork is invisible to the provider. Side chains live in the engine's tree state. The tests only prove the final canonical chain.
Activity