Skip to content

Commit

Permalink
PendingTxChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Jul 18, 2024
1 parent c01a661 commit cdf1931
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions abci/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,28 @@ func MarshalTxResults(r []*ExecTxResult) ([][]byte, error) {

// -----------------------------------------------
// construct Result data

type PendingTxCheckerResponse int

const (
Accepted PendingTxCheckerResponse = iota
Rejected
Pending
)

type PendingTxChecker func() PendingTxCheckerResponse
type ExpireTxHandler func()

// ResponseCheckTxV2 response type contains non-protobuf fields, so non-local ABCI clients will not be able
// to utilize the new fields in V2 type (but still be backwards-compatible)
type ResponseCheckTxV2 struct {
*ResponseCheckTx
IsPendingTransaction bool
Checker PendingTxChecker // must not be nil if IsPendingTransaction is true
ExpireTxHandler ExpireTxHandler

// helper properties for prioritization in mempool
EVMNonce uint64
EVMSenderAddress string
IsEVM bool
}

0 comments on commit cdf1931

Please sign in to comment.