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§
sourcefn 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.