SCORU: introduce curfew for commitments
Context
Introduce a curfew for commitments. If a commitment has been published for a certain inbox level and more than Constants_storage.sc_rollup_challenge_window_in_blocks blocks have passed then you cannot commit for the same inbox level.
This closes #3896 (closed)
Manually testing the MR
dune exec src/proto_alpha/lib_protocol/test/unit/main.exe -- test "^\[Unit\] sc rollup storage$"
dune exec src/proto_alpha/lib_protocol/test/integration/operations/main.exe -- test "^sc rollup$"
Checklist
-
Provide automatic testing (see the testing guide). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by corneliuhoffman