From 952843a03f6f34cd64bb1933b06610f8e5af3b03 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 10 Dec 2024 12:52:01 -0500 Subject: [PATCH] put back the integrity check on drop field --- crates/chia-datalayer/src/merkle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/chia-datalayer/src/merkle.rs b/crates/chia-datalayer/src/merkle.rs index 086c095ad..f4af4d932 100644 --- a/crates/chia-datalayer/src/merkle.rs +++ b/crates/chia-datalayer/src/merkle.rs @@ -401,8 +401,8 @@ pub struct MerkleBlob { // TODO: would be nice for this to be deterministic ala a fifo set free_indexes: HashSet, key_to_index: HashMap, - // TODO: used by fuzzing, some cleaner way? - #[cfg(any(test, debug_assertions))] + // TODO: used by fuzzing, some cleaner way? making it cfg-dependent is annoying with + // the type stubs pub check_integrity_on_drop: bool, }