Layr-Labs / eigenda

Secure, high-throughput, and decentralized Data Availability
https://www.eigenlayer.xyz/
Other
220 stars 168 forks source link

[4/N][zero serialization] Add fallback to the encoder client when it cannot tell chunk encoding format #738

Closed jianoaix closed 1 month ago

jianoaix commented 1 month ago

Why are these changes needed?

We need the batcher to fallback to Gob chunk encoding, when chunks returned from Encoder do not have encoding format specified.

The reason is this case:

So the Encoder will produce Gob chunks, and when Batcher tries to find out the format, it'll get ChunkEncodingFormat_UNKNOWN. So this shouldn't be treated as an error; instead, it should be treated as Gob.

Compatibility/correctness reasoning

Let's denote the versions of Encoder as:

And versions of Bather as:

The reasoning and testing of the compatibility of 9 combinations:

Testing

All of the above combinations tested in preprod.

Checks