pub trait CommitHashStore {
    fn get_current_commit_hash(
        &self
    ) -> Result<Option<String>, CommitHashStoreError>; fn set_current_commit_hash(
        &self,
        commit_hash: &str
    ) -> Result<(), CommitHashStoreError>; }
Expand description

A store for the current commit hash value.

The commit hash, for Scabbard’s purposes is the current state root hash of the Merkle-Radix tree after transactions have been applied.

Required Methods

Returns the current commit hash for the instance

Sets the current commit hash value.

The commit hash, for Scabbard’s purposes is the current state root hash of the Merkle-Radix tree after transactions have been applied.

Arguments
  • current_commit_hash - the new “current” commit hash.

Implementors