DAL/node: check history modes
What
Check that the history modes of the DAL node matches its profile.
Check that the history modes of the L1 node matches the DAL node's profile requirements.
Why
That was not done yet.
Manually testing the MR
The CI should be enough for testing the L1 node check.
To manually test the DAL node's history mode check:
- start a L1 node
- then start a DAL node (adapt the data-dir and endpoint if needed)
$ ./octez-dal-node run -d tmp-dal-node --endpoint http://127.0.0.1:18731 --history-mode 7
octez-dal-node: Error:
The node's history mode specifies that data for 7 levels should be stored, but the minimum required is 8 levels.
Edited by Eugen Zalinescu