Commit e0ec50ed authored by Joshua Gutow's avatar Joshua Gutow

Fix line length lint

parent 5c44c9e9
...@@ -160,9 +160,9 @@ equal to `MAX_RLP_BYTES_PER_CHANNEL`). Therefore every field size of span batch ...@@ -160,9 +160,9 @@ equal to `MAX_RLP_BYTES_PER_CHANNEL`). Therefore every field size of span batch
`MAX_SPAN_BATCH_SIZE` . There can be at least single span batch per channel, and channel size is limited `MAX_SPAN_BATCH_SIZE` . There can be at least single span batch per channel, and channel size is limited
to `MAX_RLP_BYTES_PER_CHANNEL` and you may think that there is already an implicit limit. However, having an explicit to `MAX_RLP_BYTES_PER_CHANNEL` and you may think that there is already an implicit limit. However, having an explicit
limit for span batch is helpful for several reasons. We may save computation costs by avoiding malicious input while limit for span batch is helpful for several reasons. We may save computation costs by avoiding malicious input while
decoding. For example, let's say bad batcher wrote span batch which `block_count = max.Uint64`. We may early return using decoding. For example, let's say bad batcher wrote span batch which `block_count = max.Uint64`. We may early return
the explicit limit, not trying to consume data until EOF is reached. We can also safely preallocate memory for decoding using the explicit limit, not trying to consume data until EOF is reached. We can also safely preallocate memory for
because we know the upper limit of memory usage. decoding because we know the upper limit of memory usage.
## Span batch Activation Rule ## Span batch Activation Rule
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment