util

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NonceCache

type NonceCache interface {
	Serialize(account ethcmn.Address, fn func() error) error
	Sync(account ethcmn.Address, syncFn func() (uint64, error))

	Set(account ethcmn.Address, nonce int64)
	Get(account ethcmn.Address) (nonce int64, loaded bool)
	Incr(account ethcmn.Address) int64
	Decr(account ethcmn.Address) int64
}

func NewNonceCache

func NewNonceCache() NonceCache

Jump to

Keyboard shortcuts

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