mirror of
https://github.com/tendermint/tendermint.git
synced 2026-10-01 12:15:45 +00:00
mempool: use checktx sync calls (#7868)
This commit is contained in:
@@ -594,7 +594,7 @@ func TestClientMethodCallsAdvanced(t *testing.T) {
|
||||
_, _, tx := MakeTxKV()
|
||||
|
||||
txs[i] = tx
|
||||
err := pool.CheckTx(ctx, tx, func(_ *abci.Response) { ch <- nil }, mempool.TxInfo{})
|
||||
err := pool.CheckTx(ctx, tx, func(_ *abci.ResponseCheckTx) { ch <- nil }, mempool.TxInfo{})
|
||||
|
||||
require.NoError(t, err)
|
||||
}
|
||||
@@ -636,7 +636,7 @@ func TestClientMethodCallsAdvanced(t *testing.T) {
|
||||
|
||||
_, _, tx := MakeTxKV()
|
||||
|
||||
err := pool.CheckTx(ctx, tx, func(_ *abci.Response) { close(ch) }, mempool.TxInfo{})
|
||||
err := pool.CheckTx(ctx, tx, func(_ *abci.ResponseCheckTx) { close(ch) }, mempool.TxInfo{})
|
||||
require.NoError(t, err)
|
||||
|
||||
// wait for tx to arrive in mempoool.
|
||||
|
||||
Reference in New Issue
Block a user