execution

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndExecute

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

func CheckLockTime

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

func Execute

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

Types

type LockTimeExpiredError

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

func (e LockTimeExpiredError) Error() string

type LockTimeInFutureError

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

func (e LockTimeInFutureError) Error() string

type SignerBannedError

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

func (e SignerBannedError) Error() string

type TransactionCommittedError

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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