improvement: update TxInfo (#6529)

Remove `Context` from the `TxInfo` type and instead require the caller to pass a `Context` to `CheckTx` which is idiomatic.

closes: #6497
This commit is contained in:
Aleksandr Bezobchuk
2021-06-02 13:53:57 +00:00
committed by GitHub
parent 1f46a4c90e
commit 7ec123c968
22 changed files with 131 additions and 79 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
package checktx
import (
"context"
"github.com/tendermint/tendermint/abci/example/kvstore"
"github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/mempool"
@@ -26,7 +28,7 @@ func init() {
}
func Fuzz(data []byte) int {
err := mp.CheckTx(data, nil, mempool.TxInfo{})
err := mp.CheckTx(context.Background(), data, nil, mempool.TxInfo{})
if err != nil {
return 0
}