Documentation
¶
Index ¶
- func CheckAndExecute(trx *tx.Tx, sbx sandbox.Sandbox, strict bool) error
- func CheckLockTime(trx *tx.Tx, sbx sandbox.Sandbox, strict bool) error
- func Execute(trx *tx.Tx, sbx sandbox.Sandbox) error
- type LockTimeExpiredError
- type LockTimeInFutureError
- type SignerBannedError
- type TransactionCommittedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndExecute ¶ added in v1.4.0
func CheckLockTime ¶ added in v1.4.0
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
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
func (e TransactionCommittedError) Error() string
Click to show internal directories.
Click to hide internal directories.