Add a getter for the mode (Validium or Rollup for the moment) for the server to be able to cross-check said mode to avoid inconsistencies in the config.
Why ❔
It is now possible to run the node with an incorrect config that doesn’t match the L1 config.
We should force the node to ask the pre-deployed contracts on L1 in which mode it should run.
Checklist
[x] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.
What ❔
Add a getter for the mode (Validium or Rollup for the moment) for the server to be able to cross-check said mode to avoid inconsistencies in the config.
Why ❔
It is now possible to run the node with an incorrect config that doesn’t match the L1 config.
We should force the node to ask the pre-deployed contracts on L1 in which mode it should run.
Checklist
最初由 @ilitteri 在 https://github.com/matter-labs/era-contracts/pull/224 发布