Skip to content

Tx_rollup: impose size limit on ticket contents in deposits

Context

Fixes #2588 (closed)

Add new protocol parameter tx_rollup_max_ticket_contents_size, set it to 10240 bytes.

When depositing tickets in apply.ml, check that the size of ticket contents does not exceed tx_rollup_max_ticket_contents_size using Script_typed_ir_size.node_size.

If it does, fail with new error Ticket_content_size_limit_exceeded.

Manually testing the MR

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Arvid Jakobsson

Merge request reports