cache

package
v1.7.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockRootToSlotProvider

type BlockRootToSlotProvider interface {
	// BlockRootToSlot provides the slot for a given block root.
	BlockRootToSlot(ctx context.Context, root phase0.Root) (phase0.Slot, error)
}

BlockRootToSlotProvider provides a mapping from block root to slot.

type BlockRootToSlotSetter added in v1.7.0

type BlockRootToSlotSetter interface {
	// SetBlockRootToSlot sets the block root to slot mapping.
	SetBlockRootToSlot(root phase0.Root, slot phase0.Slot)
}

BlockRootToSlotSetter sets a known block root to its slot.

type ExecutionChainHeadProvider added in v1.6.0

type ExecutionChainHeadProvider interface {
	// ExecutionChainHead provides the current execution chain head.
	ExecutionChainHead(ctx context.Context) (phase0.Hash32, uint64)
}

ExecutionChainHeadProvider provides the current execution chain head.

type Service

type Service interface{}

Service provides a cache for information.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL