errors

package
v1.5.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInsufficientMinGasPrice

func IsInsufficientMinGasPrice(err error) bool

IsInsufficientMinGasPrice checks if the error is due to the gas price being too low.

func IsNonceMismatch

func IsNonceMismatch(err error) bool

IsNonceMismatch checks if the error is due to a sequence mismatch.

func ParseInsufficientMinGasPrice

func ParseInsufficientMinGasPrice(err error, gasPrice float64, gasLimit uint64) (float64, error)

ParseInsufficientMinGasPrice checks if the error is due to the gas price being too low. Given the previous gas price and gas limit, it returns the new minimum gas price that the node should accept. If the error is not due to the gas price being too low, it returns 0, nil

func ParseNonceMismatch

func ParseNonceMismatch(err error) (uint64, error)

ParseNonceMismatch extracts the expected sequence number from the ErrWrongSequence error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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