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
C1-mentorA task where a mentor is available. Please indicate in the issue who the mentor could be.D0-easyCan be fixed primarily by duplicating and adapting code by an intermediate coder.
// The on_idle hook is called when the system is idle, typically during periods when no extrinsics are being processed.fnon_idle(n:T::BlockNumber) -> Weight{// Log the block number at which the on_idle hook is being called
log::info!("on_idle called at block number {:?}", n);// Return weight for the operation; this indicates the computational cost// In this case, we return Weight::zero() because we are not performing any heavy operationsWeight::zero()}
Yes looks good. Please open a merge-request (if you are comfortable with this 😄).
kianenigma
added
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
D0-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder.
labels
Nov 9, 2024
C1-mentorA task where a mentor is available. Please indicate in the issue who the mentor could be.D0-easyCan be fixed primarily by duplicating and adapting code by an intermediate coder.
(Issue reserved for training purposes)
The
pallet-example-basic
should have all the pallet hooks as demonstration. As a start, theon_idle
could be added.The text was updated successfully, but these errors were encountered: