mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
Add test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user