paradigmxyz / reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
https://reth.rs/
Apache License 2.0
3.91k stars 1.15k forks source link

Move `HackReceiptFileCodec` into `reth-optimism-cli` #9393

Closed emhane closed 3 months ago

emhane commented 3 months ago

Describe the feature

Move HackReceiptFileCodec into reth-optimism-cli. https://github.com/paradigmxyz/reth/blob/d599393771f9d7d137ea4abf271e1bd118184c73/crates/net/downloaders/src/file_codec_ovm_receipt.rs#L12-L47

Requires implementing a mock receipt file codec to replace HackReceiptFileCodec in ReceiptFileClient tests. https://github.com/paradigmxyz/reth/blob/d599393771f9d7d137ea4abf271e1bd118184c73/crates/net/downloaders/src/receipt_file_client.rs#L221-L339

Additional context

No response

nkysg commented 3 months ago

Can I take this?