Hooks

Documentation about Pallet hooks
  • OnInitialize hooks are only executed when a code change is detected.

  • OnRuntimeUpgrade hooks are mandatorily executed at the very beginning of the block body, before any extrinsics are processed.

  • Inherents are always executed before any other other signed or unsigned extrinsics.

  • OnIdle hooks are executed after extrinsics if there is weight remaining in the block.

  • OnFinalize hooks are mandatorily executed after OnIdle.

Last updated