mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 12:56:12 +00:00
Unimplement TreeHash for BeaconState (#6083)
* Unimplement `TreeHash` for `BeaconState`
This commit is contained in:
@@ -1195,7 +1195,7 @@ mod test {
|
||||
|
||||
let head = chain.head_snapshot();
|
||||
|
||||
let state = &head.beacon_state;
|
||||
let mut state = head.beacon_state.clone();
|
||||
let block = &head.beacon_block;
|
||||
|
||||
assert_eq!(state.slot(), Slot::new(0), "should start from genesis");
|
||||
@@ -1206,7 +1206,7 @@ mod test {
|
||||
);
|
||||
assert_eq!(
|
||||
block.state_root(),
|
||||
state.canonical_root(),
|
||||
state.canonical_root().unwrap(),
|
||||
"block should have correct state root"
|
||||
);
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user