execution

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MempoolTransaction

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

MempoolTransaction is an event that represents a transaction in the mempool.

func NewMempoolTransaction

func NewMempoolTransaction(
	log logrus.FieldLogger,
	tx *types.Transaction,
	now time.Time,
	duplicateCache *ttlcache.Cache[string, time.Time],
	clientMeta *xatu.ClientMeta,
	signer types.Signer,
) *MempoolTransaction

NewMempoolTransaction creates a new MempoolTransaction.

func (*MempoolTransaction) Decorate

Decorate decorates the transaction with additional data.

func (*MempoolTransaction) ShouldIgnore

func (e *MempoolTransaction) ShouldIgnore(ctx context.Context) (bool, error)

ShouldIgnore checks if the transaction should be ignored based on the cache.

Jump to

Keyboard shortcuts

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