cache

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Best to keep this > 1 epoch as some clients may send the same attestation on new epoch.
	CONSENSUS_TTL = 7 * time.Minute

	// Use a shorter TTL for execution layer events.
	EXECUTION_TTL = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicateCache

type DuplicateCache struct {
	BeaconETHV1EventsAttestation               *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsBlock                     *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsBlockGossip               *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsFastConfirmation          *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsChainReorg                *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsFinalizedCheckpoint       *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsHead                      *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsHeadV3                    *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsVoluntaryExit             *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsContributionAndProof      *ttlcache.Cache[string, time.Time]
	BeaconETHV2BeaconBlock                     *ttlcache.Cache[string, time.Time]
	BeaconEthV1BeaconCommittee                 *ttlcache.Cache[string, time.Time]
	BeaconEthV1EventsBlobSidecar               *ttlcache.Cache[string, time.Time]
	BeaconEthV1EventsDataColumnSidecar         *ttlcache.Cache[string, time.Time]
	BeaconEthV1BeaconBlob                      *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsExecutionPayload          *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsExecutionPayloadGossip    *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsExecutionPayloadAvailable *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsExecutionPayloadBid       *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsPayloadAttestationMessage *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsProposerPreferences       *ttlcache.Cache[string, time.Time]
	MempoolTransaction                         *ttlcache.Cache[string, time.Time]
	ExecutionStateSize                         *ttlcache.Cache[string, time.Time]
	ConsensusEngineAPINewPayload               *ttlcache.Cache[string, time.Time]
}

func NewDuplicateCache

func NewDuplicateCache() *DuplicateCache

func (*DuplicateCache) Start

func (d *DuplicateCache) Start()

Jump to

Keyboard shortcuts

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