pallet_shards::pallet::dispatchables

Function ready

Source
pub fn ready<T: Config>(shard_id: ShardId)
Expand description

Marks a shard as ready when a member indicates readiness after commitment.

§Flow

  1. Ensure the origin is a signed transaction and the sender has committed.
  2. Retrieve the network and commitment of the shard.
  3. Update the status of the shard to Ready.
  4. If all members are ready, update the state of the shard to Online and emit the Event::ShardOnline event.
  5. 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.