Etherlink/Node: add DAL config to sequencer config
What
This MR extends the sequencer configuration of the EVM node with the DAL feature flag and the list of DAL slot indices on which the sequencer is allowed to publish DAL slots.
Stacked on !13678 (merged).
Why
The sequencer will need to know this to actually publish on the DAL in a future MR (!13883 (merged)). Alternatively, it could probably read it from the permanent storage of the rollup but putting it in the config was simpler.
How
Manually testing the MR
Run any sequencer test with the dal Tezt feature and keep the logs:
dune exec tezt/tests/main.exe -- --file etherlink/tezt/tests/evm_sequencer.ml dal --only 1 --log-file log
Observe in test log that the sequencer is correctly configured
grep 'octez-evm-node init config' log | grep -c -- '--dal-slots 4'
This should return 1.
Same with a non-dal test:
dune exec tezt/tests/main.exe -- --file etherlink/tezt/tests/evm_sequencer.ml /dal --only 1 --log-file log
grep 'octez-evm-node init config' log | grep -c -- '--dal-slots'
This should now return 0 meaning that the sequencer was configured with DAL disabled.
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.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Raphaël Cauderlier