Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce data size #59

Merged
merged 3 commits into from
Feb 29, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion specs/experimental/plasma.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ block derived from the expired challenge's input and `r_end` the last L2 block d
was reset.

Derivation MUST skip input data such as `input_data_size > MAX_L1_TX_SIZE` where `MAX_L1_TX_SIZE` is a consensus
constant of 131072 bytes. In theory `MAX_L1_TX_SIZE` could be increased up to
constant of 130872 bytes. In theory `MAX_L1_TX_SIZE` could be increased up to
trianglesphere marked this conversation as resolved.
Show resolved Hide resolved
`(tx_gas_limit - fixed_resolution_cost) / dynamic_resolution_cost` based on the cost of resolving challenges in
the contract implementation however to make challenging accessible it is capped based on geth's txMaxSize.
130672 is chosen as 131072 - 400. Geth rejects transactions from the mempool with a total serialized size over
131072. 400 bytes are allocated as overhead (signature, to address, metadata).

[pipeline]: ../protocol/derivation.md#resetting-the-pipeline
[eip4844]: https://eips.ethereum.org/EIPS/eip-4844
Expand Down