pub fn set_network_config<T: Config>(network: NetworkId, config: NetworkConfig)
Expand description
Sets the configuration for a specific network.
§Flow
- Ensure the origin of the transaction is a root user.
- Insert the new batch size for the specified network into the
NetworkBatchSize
storage. - Insert the new offset for the specified network into the
NetworkBatchOffset
storage. - Emit an event indicating the batch size and offset have been set.
- 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
.