Skip to content

Commit

Permalink
fix: build for verify feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Dec 30, 2024
1 parent dfcef7a commit 5098940
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions grovedb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,24 @@ pub type Transaction<'db> = <RocksDbStorage as Storage<'db>>::Transaction;
#[cfg(feature = "full")]
pub type TransactionArg<'db, 'a> = Option<&'a Transaction<'db>>;

/// Type alias for the return type of the `verify_merk_and_submerks` and `verify_grovedb` functions.
/// It represents a mapping of paths (as vectors of vectors of bytes) to a tuple
/// of three cryptographic hashes: the root hash, the combined value hash, and the expected value hash.
/// Type alias for the return type of the `verify_merk_and_submerks` and
/// `verify_grovedb` functions. It represents a mapping of paths (as vectors of
/// vectors of bytes) to a tuple of three cryptographic hashes: the root hash,
/// the combined value hash, and the expected value hash.
#[cfg(feature = "full")]
type VerificationIssues = HashMap<Vec<Vec<u8>>, (CryptoHash, CryptoHash, CryptoHash)>;

/// Type alias for the return type of the `open_merk_for_replication` function.
/// It represents a tuple containing:
/// - A `Merk` instance with a prefixed RocksDB immediate storage context.
/// - An optional `root_key`, represented as a vector of bytes.
/// - A boolean indicating whether the Merk is a sum tree.
type OpenedMerkForReplication<'tx> = (Merk<PrefixedRocksDbImmediateStorageContext<'tx>>, Option<Vec<u8>>, bool);
#[cfg(feature = "full")]
type OpenedMerkForReplication<'tx> = (
Merk<PrefixedRocksDbImmediateStorageContext<'tx>>,
Option<Vec<u8>>,
bool,
);

#[cfg(feature = "full")]
impl GroveDb {
Expand Down

0 comments on commit 5098940

Please sign in to comment.