pallet_networks::pallet::dispatchables

Function register_network

Source
pub fn register_network<T: Config>(network: Network)
Expand description

Adds a new blockchain network with a unique ChainName.

§Flow

  1. Ensure the caller is the root user.
  2. Call `Self::insert_network(network).
  3. Emit the Event::NetworkRegistered event with the new NetworkId.
  4. Return Ok(()) to indicate success.

§Warning: Doc-Only

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