ethereum-optimism / specs

OP Stack Specifications
https://specs.optimism.io
Creative Commons Zero v1.0 Universal
102 stars 91 forks source link

holocene: add rule to limit channel size at channel stage #431

Closed sebastianst closed 1 month ago

sebastianst commented 1 month ago

Description

Adds rule to limit channel size at channel stage by MaxRLPBytesPerChannel. This replaces the limit of all channels' sizes by MaxChannelBankSize.

Additional context

This rule makes sense since the channel stage now only holds a single (still compressed) channel, so it can be limited in size by the later limit on an uncompressed channel. Compression is none worst-case (ignoring overheads), so practically this doesn't add any stronger limits on a channel, but early-limits the size by which the channel bank could grow, back to 100 MB from 1 GB, since the channel bank size was increased to 1GB with Fjord.