Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateProvider ¶ added in v1.3.6
type StateProvider struct { BeaconDB db.ReadOnlyDatabase ChainInfoFetcher blockchain.ChainInfoFetcher GenesisTimeFetcher blockchain.TimeFetcher StateGenService stategen.StateManager }
StateProvider is a real implementation of Fetcher.
func (*StateProvider) State ¶ added in v1.3.6
func (p *StateProvider) 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.