scroll-tech / stateless-block-verifier

20 stars 6 forks source link

refactor: clean the "trace" format #5

Closed lispc closed 1 week ago

lispc commented 2 months ago
  1. use Trace.transactions instead of Trace.execution_results for replay

===== outdated ====

we need to be more align with standard clients like geth / ergion / reth.

Changes needed for "trace":

  1. move bytecodes out of struct logs. Move them to top level. So struct logs can be standard struct logs.
  2. remove "tx_storage_proof". not well defined and not used now.
  3. storage proof and struct logs can be optional.
  4. finally the trace format will be just merge of (a) pre-states (b) storage_proofs (c) bytecodes in pre-state (d) txs. All of them can be from standard rpcs.