pallet_networks::pallet::dispatchables

Function set_network_config

Source
pub fn set_network_config<T: Config>(network: NetworkId, config: NetworkConfig)
Expand description

Sets the configuration for a specific network.

§Flow

  1. Ensure the origin of the transaction is a root user.
  2. Insert the new batch size for the specified network into the NetworkBatchSize storage.
  3. Insert the new offset for the specified network into the NetworkBatchOffset storage.
  4. Emit an event indicating the batch size and offset have been set.
  5. Return Ok(()) if all operations succeed.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::set_network_config.