-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rolldown on_idle_hook & configurable dispute period (#843)
- introduces configurable dispute periods per l1. Intial values can be provided in chain spec. And modified later on using dedicated extrinsic `set_dispute_period` (**root only**) - adds benchmarks for functions used in hooks, to simplify weight calculations - accounts for huge read/writes based on substrate diagram (2mb) - refactoring of the logic of updates scheduler/executed: * `on_initialize_hook` - schedules requests to be executed as well as moves execution counter to the next element in the queue if the previous one was already executed. * `on_idle_hook` - Executes some requests from current block based on available weight. Behavior change: **Now update that is scheduled to be executed at block `N` may start being executed in the same block** **Stops executing of given update as soon as maintanance mode is triggered** https://mangatafinance.atlassian.net/browse/GASP-1632
- Loading branch information
Showing
12 changed files
with
795 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.