Draft: SCORU/Node: first (naive) version of protocol agnostic rollup node
Context
Depends on !8504 (merged), !8498 (merged), !8482 (merged), !8530 (merged), !8524 (merged).
Implements the first version (V0 in #2901 (closed)) of the protocol agnostic rollup node. A new daemon handles the heads monitoring and dispatches the processing of each block to the corresponding protocol specific process_block function.
Upon protocol upgrade on the L1, from proto P1 to P2 the following happens:
- The node context (store and context access), rpc server and workers, of P1 are shutdown and the global lock is released.
- A new node context, rpc server and workers are started for P2. The node context is kept around until the next protocol change.
Edited by Alain Mebsout