Open
Description
openedon Nov 27, 2024
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:
- We never accept single xnet messages that would, in themselves, exceed the parent's tx payload limt.
- We flush an early checkpoint when we add a message that would cause an overflow.
- 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.
- etc.
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog
Activity