You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
on_runtime_upgrade hook is executed before initialize and which initialize fields like block number as well as kill all the events from previous block. This means events from on_runtime_upgrade are also removed by initialize.
This makes debugging harder as well as make events incomplete. It will not be possible to observe changes by only look at events.
I can see reason why it is executed before initialize but most of the time, the reason doesn't apply and that means code from on_runtime_upgrade will have no event, read old block number, read bad execution phase, etc.
The text was updated successfully, but these errors were encountered:
I think the best would probably be to create a special clear_events functions this would then be called inside Executive. We should then also be able to drop the InitKind enum because we can control from the outside when the events are being cleared.
on_runtime_upgrade
hook is executed beforeinitialize
and which initialize fields like block number as well as kill all the events from previous block. This means events fromon_runtime_upgrade
are also removed byinitialize
.This makes debugging harder as well as make events incomplete. It will not be possible to observe changes by only look at events.
I can see reason why it is executed before
initialize
but most of the time, the reason doesn't apply and that means code fromon_runtime_upgrade
will have no event, read old block number, read bad execution phase, etc.The text was updated successfully, but these errors were encountered: