Documentation
¶
Index ¶
- func New(blockRootToSlotMap map[phase0.Root]phase0.Slot) cache.Service
- type Service
- func (s *Service) BlockGasLimit(_ context.Context, _ uint64) (uint64, bool)
- func (s *Service) BlockRootToSlot(_ context.Context, root phase0.Root) (phase0.Slot, error)
- func (*Service) ExecutionChainHead(_ context.Context) (phase0.Hash32, uint64)
- func (s *Service) SetBlockRootToSlot(root phase0.Root, slot phase0.Slot)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a mock.
func (*Service) BlockGasLimit ¶ added in v1.10.0
BlockGasLimit provides the block gas limit for the given height.
func (*Service) BlockRootToSlot ¶
BlockRootToSlot provides the slot for a given block root.
func (*Service) ExecutionChainHead ¶ added in v1.6.0
ExecutionChainHead provides the current execution chain head.
Click to show internal directories.
Click to hide internal directories.