mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
Add test
This commit is contained in:
@@ -863,3 +863,16 @@ impl slog::KV for StatusMessage {
|
|||||||
slog::Result::Ok(())
|
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