lighthouse/beacon_node/beacon_chain
Michael Sproul 0074a3b5f5 Fix block & state queries prior to genesis (#4761)
## Issue Addressed

Closes #4751

## Proposed Changes

Prevent `state_root_at_slot` and `block_root_at_slot` from erroring out due to a call to `self.slot()?` that fails before genesis. This fixes pre-genesis queries for:

- block at slot 0
- block by genesis block root
- state at slot 0
- state by genesis state root
- state at `finalized` tag
- state at `justified` tag
2023-09-21 06:38:33 +00:00
..
src Fix block & state queries prior to genesis (#4761) 2023-09-21 06:38:33 +00:00
tests Fix bug in block root storage (#4663) 2023-08-28 05:34:28 +00:00
Cargo.toml Prevent port re-use in HTTP API tests (#4745) 2023-09-20 01:19:03 +00:00