cache

package
v0.0.169 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 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
	TTL = 7 * time.Minute
)

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]
	BeaconETHV1EventsChainReorg           *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsFinalizedCheckpoint  *ttlcache.Cache[string, time.Time]
	BeaconETHV1EventsHead                 *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]
}

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