pub trait CommitProvider: StateProvider {
fn commit(
&self,
correlation_id: CorrelationId,
state_hash: Digest,
effects: AdditiveMap<Key, Transform>
) -> Result<Digest, Self::Error>;
}
Expand description
Provides commit
method.
Required Methods
fn commit(
&self,
correlation_id: CorrelationId,
state_hash: Digest,
effects: AdditiveMap<Key, Transform>
) -> Result<Digest, Self::Error>
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.