Skip to content

Respect checkpoint size constraints #1220

Open

Description

The maximum size of checkpoints is limited by several environmental and practical constraints:

  • Payload limits for transactions submittable to parents (e.g. Filecoin defines a max payload size of ? -- can't remember -- need to dig in).
  • (Today) Block gas limit on the parent, which limits the amount of eager execution we can perform through xnet messaging.
  • more?

Currently it is possible to queue messages which, when aggregated into a bundle, end up exceeding the above constraints upon submission within a checkpoint.

Furthermore, as checkpoints grow to include more data within them (e.g. more summaries in activity rollups) this problem is aggravated.

We should consider improving our local checkpoint validation and flushing logic to make it more intelligent, so that:

  1. We never accept single xnet messages that would, in themselves, exceed the parent's tx payload limt.
  2. We flush an early checkpoint when we add a message that would cause an overflow.
  3. We reserve N bytes in checkpoints to carry other data, e.g. activity rollups. In most cases these will have to be worst case scenario estimations.
  4. etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions