execution

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const PeerType = "execution"

Variables

This section is empty.

Functions

func ValidateBootstrapRPC added in v1.8.13

func ValidateBootstrapRPC(ctx context.Context, log logrus.FieldLogger, url string) error

Types

type Metrics added in v1.8.13

type Metrics struct {
	// contains filtered or unexported fields
}

func NewMetrics added in v1.8.13

func NewMetrics(namespace string) *Metrics

func (*Metrics) AddDisconnect added in v1.8.13

func (m *Metrics) AddDisconnect(implementation, reason string)

func (*Metrics) DecConnectedPeer added in v1.8.13

func (m *Metrics) DecConnectedPeer(implementation, networkID string)

func (*Metrics) DeleteConnectedPeerStartTime added in v1.8.13

func (m *Metrics) DeleteConnectedPeerStartTime(implementation, networkID, nodeRecord string)

func (*Metrics) IncConnectedPeer added in v1.8.13

func (m *Metrics) IncConnectedPeer(implementation, networkID string)

func (*Metrics) SetConnectedPeerStartTime added in v1.8.13

func (m *Metrics) SetConnectedPeerStartTime(implementation, networkID, nodeRecord string, timestamp float64)

type Peer

type Peer struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, log logrus.FieldLogger, nodeRecord string, handlers *handler.Peer, captureDelay time.Duration, sharedCache *coordCache.SharedCache, ethereumConfig *ethereum.Config) (*Peer, error)

func (*Peer) ExportTransactions

func (p *Peer) ExportTransactions(ctx context.Context, items []*TransactionHashItem) error

func (*Peer) Start

func (p *Peer) Start(ctx context.Context) (<-chan error, error)

func (*Peer) Stop

func (p *Peer) Stop(ctx context.Context) error

func (*Peer) Type

func (p *Peer) Type() string

type TransactionExporter

type TransactionExporter struct {
	// contains filtered or unexported fields
}

func NewTransactionExporter

func NewTransactionExporter(log logrus.FieldLogger, handler func(ctx context.Context, items []*TransactionHashItem) error) (TransactionExporter, error)

func (TransactionExporter) ExportItems

func (t TransactionExporter) ExportItems(ctx context.Context, items []*TransactionHashItem) error

func (TransactionExporter) Shutdown

func (t TransactionExporter) Shutdown(ctx context.Context) error

type TransactionHashItem

type TransactionHashItem struct {
	Hash common.Hash
	Seen time.Time
	Type uint8
}

Jump to

Keyboard shortcuts

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