execution

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndExecute added in v1.4.0

func CheckAndExecute(trx *tx.Tx, sbx sandbox.Sandbox, strict bool) error

func CheckLockTime added in v1.4.0

func CheckLockTime(trx *tx.Tx, sbx sandbox.Sandbox, strict bool) error

func Execute added in v1.4.0

func Execute(trx *tx.Tx, sbx sandbox.Sandbox) error

Types

type LockTimeExpiredError added in v1.4.0

type LockTimeExpiredError struct {
	LockTime uint32
}

LockTimeExpiredError is returned when the lock time of a transaction is in the past and has expired, indicating the transaction can no longer be executed.

func (LockTimeExpiredError) Error added in v1.4.0

func (e LockTimeExpiredError) Error() string

type LockTimeInFutureError added in v1.4.0

type LockTimeInFutureError struct {
	LockTime uint32
}

LockTimeInFutureError is returned when the lock time of a transaction is in the future, indicating the transaction is not yet eligible for processing.

func (LockTimeInFutureError) Error added in v1.4.0

func (e LockTimeInFutureError) Error() string

type SignerBannedError added in v1.1.3

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

SignerBannedError is returned when the signer of transaction is banned and its assets is freezed.

func (SignerBannedError) Error added in v1.1.3

func (e SignerBannedError) Error() string

type TransactionCommittedError added in v0.15.0

type TransactionCommittedError struct {
	ID tx.ID
}

TransactionCommittedError is returned when an attempt is made to replay a transaction that has already been committed. This is to prevent replay attacks where an attacker tries to submit the same transaction more than once.

func (TransactionCommittedError) Error added in v0.15.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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