Skip to content

Commit

Permalink
add suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Apr 19, 2024
1 parent 714c69c commit 86f4d2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base_layer/core/src/consensus/consensus_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ impl ConsensusConstants {
}

pub fn epoch_length(&self) -> u64 {
#[cfg(any(test, debug_assertions))]
assert_ne!(self.vn_epoch_length, 0, "Epoch length must be greater than 0");
self.vn_epoch_length
}

Expand Down

0 comments on commit 86f4d2d

Please sign in to comment.