Add test to block_store, export BlockAtSlotError
This commit is contained in:
parent
8c1d72a32e
commit
d729355c09
@ -208,5 +208,8 @@ mod tests {
|
||||
|
||||
let ssz = bs.block_at_slot(&hashes[4], 6).unwrap();
|
||||
assert_eq!(ssz, None);
|
||||
|
||||
let ssz = bs.block_at_slot(&Hash256::from("unknown".as_bytes()), 2);
|
||||
assert_eq!(ssz, Err(BlockAtSlotError::UnknownBlock));
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,10 @@ mod block_store;
|
||||
mod pow_chain_store;
|
||||
mod validator_store;
|
||||
|
||||
pub use self::block_store::BlockStore;
|
||||
pub use self::block_store::{
|
||||
BlockStore,
|
||||
BlockAtSlotError,
|
||||
};
|
||||
pub use self::pow_chain_store::PoWChainStore;
|
||||
pub use self::validator_store::{
|
||||
ValidatorStore,
|
||||
|
Loading…
Reference in New Issue
Block a user