Skip to content

Commit

Permalink
Merge pull request ProvableHQ#2346 from AleoHQ/feat/simplify-check
Browse files Browse the repository at this point in the history
Simplify header check in non-debug mode
  • Loading branch information
howardwu authored Feb 10, 2024
2 parents bd66f86 + c0e1ac9 commit 232884f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ledger/block/src/header/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ impl<N: Network> Header<N> {
ratified_finalize_operations: Vec<FinalizeOperation<N>>,
) -> Result<Self> {
#[cfg(not(debug_assertions))]
ensure!(!ratifications.is_empty(), "The genesis block must not contain ratifications");
#[cfg(not(debug_assertions))]
ensure!(ratifications.len() == 1, "The genesis block must not contain 1 ratification");
ensure!(ratifications.len() == 1, "The genesis block must contain exactly 1 ratification");
#[cfg(not(debug_assertions))]
ensure!(!ratified_finalize_operations.is_empty(), "The genesis block must contain ratify-finalize operations");

Expand Down

0 comments on commit 232884f

Please sign in to comment.