Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateFetcher ¶
type StateFetcher struct { BeaconDB db.ReadOnlyDatabase ChainInfoFetcher blockchain.ChainInfoFetcher GenesisTimeFetcher blockchain.TimeFetcher StateGenService stategen.StateManager }
StateFetcher is responsible for retrieving the BeaconState.
func (*StateFetcher) State ¶
func (f *StateFetcher) State(ctx context.Context, stateId []byte) (iface.BeaconState, error)
State returns the BeaconState for a given identifier. The identifier can be one of:
- "head" (canonical head in node's view)
- "genesis"
- "finalized"
- "justified"
- <slot>
- <hex encoded stateRoot with 0x prefix>
Click to show internal directories.
Click to hide internal directories.