mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-28 02:03:32 +00:00
Add new beacon chain test harness
This commit is contained in:
@@ -88,6 +88,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
genesis_block: BeaconBlock,
|
||||
spec: ChainSpec,
|
||||
) -> Result<Self, Error> {
|
||||
genesis_state.build_all_caches(&spec)?;
|
||||
|
||||
let state_root = genesis_state.canonical_root();
|
||||
store.put(&state_root, &genesis_state)?;
|
||||
|
||||
@@ -105,8 +107,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
state_root,
|
||||
));
|
||||
|
||||
genesis_state.build_all_caches(&spec)?;
|
||||
|
||||
Ok(Self {
|
||||
spec,
|
||||
slot_clock,
|
||||
|
||||
Reference in New Issue
Block a user