Skip to content

Commit 04b3743

Browse files
committed
Add test
1 parent 440e854 commit 04b3743

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

beacon_node/lighthouse_network/src/rpc/methods.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,3 +863,16 @@ impl slog::KV for StatusMessage {
863863
slog::Result::Ok(())
864864
}
865865
}
866+
867+
#[cfg(test)]
868+
mod test {
869+
use super::*;
870+
use types::{ForkName, MainnetEthSpec};
871+
872+
#[test]
873+
fn max_blobs_per_block_ceiling() {
874+
let spec = MainnetEthSpec::default_spec();
875+
let latest_fork = ForkName::latest();
876+
assert!(spec.max_blobs_per_block_by_fork(latest_fork) <= MAX_BLOBS_PER_BLOCK_CEILING);
877+
}
878+
}

0 commit comments

Comments
 (0)