Skip to content

Commit

Permalink
datalayer fuzz version and some cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Dec 10, 2024
1 parent 6aecf29 commit 2a0b98f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/chia-datalayer/src/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ pub struct MerkleBlob {
free_indexes: HashSet<TreeIndex>,
key_to_index: HashMap<KvId, TreeIndex>,
// TODO: used by fuzzing, some cleaner way?
#[cfg(any(test, debug_assertions))]
pub check_integrity_on_drop: bool,
}

Expand All @@ -420,6 +421,7 @@ impl MerkleBlob {
blob,
free_indexes,
key_to_index,
#[cfg(any(test, debug_assertions))]
check_integrity_on_drop: true,
};

Expand Down

0 comments on commit 2a0b98f

Please sign in to comment.