reth icon indicating copy to clipboard operation
reth copied to clipboard

`ReceiptFileClient` generic over codec

Open emhane opened this issue 9 months ago • 0 comments

Describe the feature

Make ReceiptFileClient generic over codec. This way it can be used for importing the standard receipts RLP encoding. Rn it is fixed to HackReceiptCodec, a special codec used on https://github.com/testinprod-io/op-geth/pull/1.

https://github.com/paradigmxyz/reth/blob/0ad9c7866b6eef75234a353c1dabcce5fb7cc8a9/crates/net/downloaders/src/receipt_file_client.rs#L41

Probably best way to do this, is add an extension trait, FromReceiptReader, that has FromReader as supertrait.

Additional context

No response

emhane avatar May 07 '24 20:05 emhane