tx

package
v2.0.0-b2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const TimeoutSafetyFactor time.Duration = 2

The fraction of the timeout period to trigger overdue transactions

Variables

This section is empty.

Functions

func IsTransactionDue

func IsTransactionDue(startTime time.Time, minipoolLaunchTimeout time.Duration) (bool, time.Duration)

True if a transaction is due and needs to bypass the gas threshold

func PrintAndWaitForTransaction

func PrintAndWaitForTransaction(cfg *config.SmartNodeConfig, rp *rocketpool.RocketPool, logger *slog.Logger, txInfo *eth.TransactionInfo, opts *bind.TransactOpts) error

Prints a TX's details to the logger and waits for it to validated.

func PrintAndWaitForTransactionBatch

func PrintAndWaitForTransactionBatch(cfg *config.SmartNodeConfig, rp *rocketpool.RocketPool, logger *slog.Logger, submissions []*eth.TransactionSubmission, callbacks []func(err error), opts *bind.TransactOpts) error

Prints a TX's details to the logger and waits for it to validated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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