mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-03 16:22:11 +00:00
Persistent committee caches and exit cache
This commit is contained in:
18
beacon_node/store/src/state_cache.rs
Normal file
18
beacon_node/store/src/state_cache.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user