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()
Click to show internal directories.
Click to hide internal directories.