Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Jan 6, 2025
1 parent 440e854 commit 04b3743
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions beacon_node/lighthouse_network/src/rpc/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -863,3 +863,16 @@ impl slog::KV for StatusMessage {
slog::Result::Ok(())
}
}

#[cfg(test)]
mod test {
use super::*;
use types::{ForkName, MainnetEthSpec};

#[test]
fn max_blobs_per_block_ceiling() {
let spec = MainnetEthSpec::default_spec();
let latest_fork = ForkName::latest();
assert!(spec.max_blobs_per_block_by_fork(latest_fork) <= MAX_BLOBS_PER_BLOCK_CEILING);
}
}

0 comments on commit 04b3743

Please sign in to comment.