pub async fn validate_network<T>(
network: &Arc<AsyncMutex<Network<T>>>,
) -> Result<(), NetworkError>
Expand description
Validates the network by locking it and invoking validate()
.
Returns an error if validation fails.
pub async fn validate_network<T>(
network: &Arc<AsyncMutex<Network<T>>>,
) -> Result<(), NetworkError>
Validates the network by locking it and invoking validate()
.
Returns an error if validation fails.