pub fn ready<T: Config>(shard_id: ShardId)
Expand description
Marks a shard as ready when a member indicates readiness after commitment.
§Flow
- Ensure the origin is a signed transaction and the sender has committed.
- Retrieve the network and commitment of the shard.
- Update the status of the shard to
Ready
. - If all members are ready, update the state of the shard to
Online
and emit theEvent::ShardOnline
event. - Notify the task scheduler that the shard is online.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::ready
.