Skip to content

Commit

Permalink
test: Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Jan 12, 2025
1 parent 0efabd4 commit 881d172
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mempool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
type Mempool interface {
// CheckTx executes a new transaction against the application to determine
// its validity and whether it should be added to the mempool.
CheckTxSync(tx types.Tx, cb func(*abci.ResponseCheckTx), txInfo TxInfo) (*abci.ResponseCheckTx, error)
CheckTxSync(tx types.Tx, callback func(*abci.ResponseCheckTx), txInfo TxInfo) (*abci.ResponseCheckTx, error)
CheckTxAsync(tx types.Tx, txInfo TxInfo, prepareCb func(error), checkTxCb func(*abci.ResponseCheckTx))

// RemoveTxByKey removes a transaction, identified by its key,
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz/mempool/checktx.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func init() {
}

func Fuzz(data []byte) int {
_, err := mempool.CheckTxSync(data, mempl.TxInfo{})
_, err := mempool.CheckTxSync(data, nil, mempl.TxInfo{})
if err != nil {
return 0
}
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz/tests/mempool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ func FuzzMempool(f *testing.F) {
mp := mempool.NewCListMempool(cfg, conn, 0)

f.Fuzz(func(t *testing.T, data []byte) {
_, _ = mp.CheckTxSync(data, mempool.TxInfo{})
_, _ = mp.CheckTxSync(data, nil, mempool.TxInfo{})
})
}

0 comments on commit 881d172

Please sign in to comment.