Skip to content

Reject update that doesnt provide new info #764

Reject update that doesnt provide new info

Reject update that doesnt provide new info #764

GitHub Actions / E2E report yarn test-rollupUpdate succeeded Nov 30, 2024 in 0s

E2E report yarn test-rollupUpdate ✅

Tests passed successfully

✅ e2eTests/reports/junit.xml-cc47dcf0-aeb5-11ef-a09c-e1bd88175663.xml

25 tests were completed in 1327s with 4 passed, 0 failed and 21 skipped.

Test suite Passed Failed Skipped Time
test/sequential/rolldown.updateL1FromL1.test.ts 4✅ 21⚪ 1327s

✅ test/sequential/rolldown.updateL1FromL1.test.ts

updateL1FromL1
  ⚪ Updates are accepted
  ⚪ Future +1 updates are  not accepted
  ⚪ Future -1,0,1 updates are  not accepted
  ⚪ Add twice the same deposit with requestId
  ⚪ Add twice the same request id but different deposits
  ⚪ Add twice the same request groups
  ⚪ Old Ids can be included but wont be considered
  ⚪ Old Ids can be included on some other update and wont be considered
  ⚪ An update with no new updates will fail
  ⚪ An update with a gap will fail
  ⚪ An update that is not ordered will fail
  ⚪ An update with two identical deposits must be executed correctly
  ⚪ Every update item is validated
updateL1FromL1 - errors › Update with gap: true
  ⚪ An update including gap? : true at positions 0
  ⚪ An update including gap? : true at positions 1
  ⚪ An update including gap? : true at positions 2
  ⚪ An update including gap? : true at positions 3
updateL1FromL1 - errors › Update with gap: false
  ⚪ An update including gap? : false at positions 0
  ⚪ An update including gap? : false at positions 1
  ⚪ An update including gap? : false at positions 2
  ⚪ An update including gap? : false at positions 3
updateL2FromL1 - cancelResolution and deposit errors
  ✅ When a cancel resolution fail, maintenance mode will be triggered automatically
  ✅ [BUG] When a cancel resolution fail, the whole update wont be stored
  ✅ When we have a failed deposit and send it again, it will result in no-execution again
  ✅ GIVEN two deposit with u128max-1 amount THEN second deposit fails