Assumptions that the genesis slot is zero #1666
Labels
A1
code-quality
consensus
An issue/PR that touches consensus code, such as state_processing or block verification.
Description
There are some places in the code where we are either faulty or misleading in the case where the genesis slot is non-zero.
Encountering a non-zero genesis slot in phase 0 seems negligible. However, we can reasonably expect non-zero genesis slots for the shard chains, once they arrive.
In the short term, I think it's acceptable for LH to be faulty for a non-zero genesis slot. But I don't think that's the case in the long term.
Known Issues
"Oldest roots" getters
lighthouse/consensus/types/src/beacon_state.rs
Lines 670 to 685 in 28b6d92
Relative epoch
lighthouse/consensus/types/src/relative_epoch.rs
Line 35 in 28b6d92
The text was updated successfully, but these errors were encountered: