ethstorage / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
2 stars 3 forks source link

l2 blob passed fault proof #77

Closed qizhou closed 1 month ago

qizhou commented 1 month ago

This PR aims to pass fault-proof with l2 blob txs.

The key missing part in the op-program is the calculation of BlobGasUsed and ExcessBlobGas, which results in mismatched claims between the op-program and op-node.

Tests:

  1. Run DA server
  2. Enable L2 blob (l2GenesisBlobTimeOffset to 0) and set --dac.urls
  3. Send a tx cast send $ADDR --private-key $PK --blob --path <file> -r $L2 with 4 BLOBs
  4. make verify-devnet
  5. check if the blobs were written to da server db