Skip to content

Rollup node: save all messages in store

Alain Mebsout requested to merge alain@functori@store-protocol-messages into master

Context

This MR makes the rollup node store all messages including the protocol messages. This allows to not rely on L1 for extra information during refutation games or snapshot replays.

The format is compatible and the rollup node supports both versions (fetching information when it is missing).

The messages could be migrated but the migration can be prohibitively expensive because of the reliance on L1 which is why it is not done in this MR. Instead, they are migrated lazily, i.e. when messages are accessed we add back the missing ones, if there are, in the store.

Manually testing the MR

Edited by Alain Mebsout

Merge request reports