trn-seed
trn-seed copied to clipboard
Ethy on_initialise optimisations
This PR addresses some optimisation improvements for Ethy pallet and reduces some of the load in on_initialize.
- Move delayed event processing to on_idle to remove some strain in on_initialize
- Update the ProcessedMessageId pruning algorithm to add an upper limit (1000) to the amount of Ids that are stored within this list. Previously the list is ever growing and iterated through every single block which is bad practice and could become a problem.
- Prevent pruning of ProcessedMessageIds unless required (Instead of every block)
- Adds submit_missing_event extrinsic which allows for submitting events that have been pruned by the more aggressive pruning algorithm
- Adds admin extrinsic remove_missing_event_id which allows for sudo to remove a range of event_ids from the MissedMessageIds storage to clear space
needs to be rebased (conflicts)