Persistent committee caches and exit cache

This commit is contained in:
Michael Sproul
2022-02-11 17:41:43 +11:00
parent 4340ba01b5
commit c97f6dcc06
9 changed files with 71 additions and 24 deletions

View File

@@ -0,0 +1,18 @@
#[cfg(test)]
mod test {
use super::*;
use std::mem::size_of;
use types::{
beacon_state::PubkeyCache, BeaconBlockHeader, BeaconState, BeaconStateAltair,
BeaconStateMerge, MainnetEthSpec,
};
#[test]
fn state_size() {
println!("{}", size_of::<BeaconStateAltair<MainnetEthSpec>>());
println!("{}", size_of::<BeaconStateMerge<MainnetEthSpec>>());
println!("{}", size_of::<BeaconState<MainnetEthSpec>>());
println!("{}", size_of::<PubkeyCache>());
assert!(false);
}
}