trn-seed icon indicating copy to clipboard operation
trn-seed copied to clipboard

Ethy on_initialise optimisations

Open JasonTulp opened this issue 10 months ago • 1 comments

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

JasonTulp avatar Apr 14 '24 23:04 JasonTulp

needs to be rebased (conflicts)

zees-dev avatar Apr 15 '24 20:04 zees-dev