First Gloas test passes!

This commit is contained in:
Michael Sproul
2026-02-25 17:09:32 +11:00
parent 59a2b6dead
commit adfa3b882d
3 changed files with 29 additions and 16 deletions

View File

@@ -77,6 +77,11 @@ pub fn partial_state_advance<E: EthSpec>(
// (all-zeros) state root.
let mut initial_state_root = Some(if state.slot() > state.latest_block_header().slot {
state_root_opt.unwrap_or_else(Hash256::zero)
} else if state.slot() == state.latest_block_header().slot
&& !state.latest_block_header().state_root.is_zero()
{
// Post-Gloas Full block case.
state.latest_block_header().state_root
} else {
state_root_opt.ok_or(Error::StateRootNotProvided)?
});