mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix(snapshot): debug assertion methods (#4851)
This commit is contained in:
@ -57,7 +57,6 @@ impl SnapshotTargets {
|
||||
}
|
||||
|
||||
/// Returns `true` if all targets are either [`None`] or multiple of `block_interval`.
|
||||
#[cfg(debug_assertions)]
|
||||
fn is_multiple_of_block_interval(&self, block_interval: u64) -> bool {
|
||||
[
|
||||
self.headers.as_ref(),
|
||||
@ -70,7 +69,6 @@ impl SnapshotTargets {
|
||||
|
||||
// Returns `true` if all targets are either [`None`] or has beginning of the range equal to the
|
||||
// highest snapshot.
|
||||
#[cfg(debug_assertions)]
|
||||
fn is_contiguous_to_highest_snapshots(&self, snapshots: HighestSnapshots) -> bool {
|
||||
[
|
||||
(self.headers.as_ref(), snapshots.headers),
|
||||
|
||||
Reference in New Issue
Block a user