pub fn register_network<T: Config>(network: Network)Expand description
Adds a new blockchain network with a unique ChainName.
§Flow
- Ensure the caller is the root user.
- Call `Self::insert_network(network).
- Emit the
Event::NetworkRegisteredevent with the newNetworkId. - 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.