pub trait CommitProvider: StateProvider {
    // Required method
    fn commit(
        &self,
        correlation_id: CorrelationId,
        state_hash: Digest,
        effects: AdditiveMap<Key, Transform>
    ) -> Result<Digest, Self::Error>;
}
Expand description

Provides commit method.

Required Methods§

source

fn commit( &self, correlation_id: CorrelationId, state_hash: Digest, effects: AdditiveMap<Key, Transform> ) -> Result<Digest, Self::Error>

Applies changes and returns a new post state hash. block_hash is used for computing a deterministic and unique keys.

Implementors§