preconditions

package
v0.0.0-...-9cf9cea Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxLedgerAge                = 10 * time.Second
	IncrementForMaxLedgerBounds = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLedgerNumberTracker

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

func (*DefaultLedgerNumberTracker) GetLedgerBounds

func (se *DefaultLedgerNumberTracker) GetLedgerBounds() (*txnbuild.LedgerBounds, error)

func (*DefaultLedgerNumberTracker) GetLedgerNumber

func (se *DefaultLedgerNumberTracker) GetLedgerNumber() (int, error)

type LedgerNumberTracker

type LedgerNumberTracker interface {
	GetLedgerNumber() (int, error)
	GetLedgerBounds() (*txnbuild.LedgerBounds, error)
}

LedgerNumberTracker is a helper struct that keeps track of the current ledger number.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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