pub(crate) fn commit_artifact(fork: &Fork, artifact: ArtifactId, deploy_spec: Vec<u8>) {
        debug_assert!(artifact.validate().is_ok(), "{:?}", artifact.validate());
        Schema::new(fork)
            .add_pending_artifact(artifact, deploy_spec)
            .unwrap_or_else(|err| panic!("BUG: Can't commit the artifact, error: {}", err));
    }
/// Commits to the artifact deployment. This means that the node will cease working
/// if the block with built on top of `fork` is committed until the artifact is deployed.
///
/// Until the block built on top of `fork` is committed (or if `fork` is discarded in
/// favor of another block proposal), no blocking is performed.
///
/// # Panics
///
/// This method assumes that `deploy_artifact` was previously called for the corresponding
/// `ArtifactId` and deployment was completed successfully.
/// If any error happens within `commit_artifact`, it is considered either a bug in the
/// `Supervisor` service or `Dispatcher` itself, and as a result, this method will panic.
Commits to the artifact deployment. This means that the node will cease working
if the block with built on top of `fork` is committed until the artifact is deployed.

Until the block built on top of `fork` is committed (or if `fork` is discarded in
favor of another block proposal), no blocking is performed.
Commits to the artifact deployment . This means that the node will cease working if the block with built on top of ` fork ` is committed until the artifact is deployed . Until the block built on top of ` fork ` is committed ( or if ` fork ` is discarded in favor of another block proposal ) no blocking is performed .
pub(crate) fn commit_artifact(fork: &Fork, artifact: ArtifactId, deploy_spec: Vec<u8>) {
        debug_assert!(artifact.validate().is_ok(), "{:?}", artifact.validate());
        Schema::new(fork)
            .add_pending_artifact(artifact, deploy_spec)
            .unwrap_or_else(|err| panic!("BUG: Can't commit the artifact, error: {}", err));
    }
pub ( crate ) fn commit_artifact ( fork : & Fork , artifact : ArtifactId , deploy_spec : Vec < u8 > ) { debug_assert ! ( artifact validate ( ) is_ok ( ) " " artifact validate ( ) ) ; Schema :: new ( fork ) . add_pending_artifact ( artifact , deploy_spec ) . unwrap_or_else ( | err | panic ! ( " " err ) ) ; }
Commits to the artifact deployment.
Commits to the artifact deployment .
fork
&Fork
artifact
ArtifactId
deploy_spec
Vec<u8>
fork
&Fork
artifact
ArtifactId
deploy_spec
Vec<u8>
panics
This method assumes that `deploy_artifact` was previously called for the corresponding
`ArtifactId` and deployment was completed successfully.
If any error happens within `commit_artifact`, it is considered either a bug in the
`Supervisor` service or `Dispatcher` itself, and as a result, this method will panic.
This method assumes that ` deploy_artifact ` was previously called for the corresponding ` ArtifactId ` and deployment was completed successfully . If any error happens within ` commit_artifact ` it is considered either a bug in the ` Supervisor ` service or ` Dispatcher ` itself and as a result this method will panic .