rpc: add /check_tx endpoint (#5017)

Closes #4549
This commit is contained in:
Anton Kaliaev
2020-06-19 09:25:52 +04:00
committed by GitHub
parent 95d2d136cd
commit 257a374b78
15 changed files with 164 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ type AppConnMempool interface {
Error() error
CheckTxAsync(types.RequestCheckTx) *abcicli.ReqRes
CheckTxSync(types.RequestCheckTx) (*types.ResponseCheckTx, error)
FlushAsync() *abcicli.ReqRes
FlushSync() error
@@ -125,6 +126,10 @@ func (app *appConnMempool) CheckTxAsync(req types.RequestCheckTx) *abcicli.ReqRe
return app.appConn.CheckTxAsync(req)
}
func (app *appConnMempool) CheckTxSync(req types.RequestCheckTx) (*types.ResponseCheckTx, error) {
return app.appConn.CheckTxSync(req)
}
//------------------------------------------------
// Implements AppConnQuery (subset of abcicli.Client)