Documentation ¶
Index ¶
- Constants
- func IsTransactionDue(startTime time.Time, minipoolLaunchTimeout time.Duration) (bool, time.Duration)
- func PrintAndWaitForTransaction(cfg *config.SmartNodeConfig, rp *rocketpool.RocketPool, logger *slog.Logger, ...) error
- func PrintAndWaitForTransactionBatch(cfg *config.SmartNodeConfig, rp *rocketpool.RocketPool, logger *slog.Logger, ...) error
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.
Click to show internal directories.
Click to hide internal directories.