Skip to content

Commit 4c08dbe

Browse files
committed
add debug asserts at end of scan certfs for current cert
1 parent 5dafa50 commit 4c08dbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/alpenglow_consensus/skip_pool.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ impl<T: Ord + Clone + Debug + HasStake> DynamicSegmentTree<T> {
134134
}
135135
}
136136

137+
debug_assert_eq!(accumulated, 0f64);
138+
debug_assert!(current_cert.is_none());
137139
certs
138140
}
139141
}

0 commit comments

Comments
 (0)