pool

package
v0.0.0-...-ff78b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeKeyForAttesterSlashing

func ComputeKeyForAttesterSlashing(slashing *cltypes.AttesterSlashing) libcommon.Bytes96

func ComputeKeyForProposerSlashing

func ComputeKeyForProposerSlashing(slashing *cltypes.ProposerSlashing) libcommon.Bytes96

Types

type OperationPool

type OperationPool[K comparable, T any] struct {
	// contains filtered or unexported fields
}

func NewOperationPool

func NewOperationPool[K comparable, T any](maxOperationsPerBlock int, matricName string) *OperationPool[K, T]

func (*OperationPool[K, T]) DeleteIfExist

func (o *OperationPool[K, T]) DeleteIfExist(k K) (removed bool)

func (*OperationPool[K, T]) Has

func (o *OperationPool[K, T]) Has(k K) (hash bool)

func (*OperationPool[K, T]) Insert

func (o *OperationPool[K, T]) Insert(k K, operation T)

func (*OperationPool[K, T]) Raw

func (o *OperationPool[K, T]) Raw() []T

type OperationsPool

type OperationsPool struct {
	AttestationsPool          *OperationPool[libcommon.Bytes96, *solid.Attestation]
	AttesterSlashingsPool     *OperationPool[libcommon.Bytes96, *cltypes.AttesterSlashing]
	ProposerSlashingsPool     *OperationPool[libcommon.Bytes96, *cltypes.ProposerSlashing]
	BLSToExecutionChangesPool *OperationPool[libcommon.Bytes96, *cltypes.SignedBLSToExecutionChange]
	VoluntaryExistsPool       *OperationPool[uint64, *cltypes.SignedVoluntaryExit]
}

OperationsPool is the collection of all gossip-collectable operations.

func NewOperationsPool

func NewOperationsPool(beaconCfg *clparams.BeaconChainConfig) OperationsPool

func (*OperationsPool) NotifyBlock

func (o *OperationsPool) NotifyBlock(blk *cltypes.BeaconBlock)

Jump to

Keyboard shortcuts

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