mempool: use checktx sync calls (#7868)

This commit is contained in:
Sam Kleinman
2022-02-18 14:17:45 -05:00
committed by GitHub
parent 165cc29474
commit cc18f87000
13 changed files with 88 additions and 274 deletions
+2 -2
View File
@@ -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.