Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
This commit is contained in:
parent
2e80d3b8b1
commit
fa4b6f6908
|
@ -507,6 +507,10 @@ func (app *BaseApp) Query(req abci.RequestQuery) (res abci.ResponseQuery) {
|
||||||
telemetry.IncrCounter(1, "query", req.Path)
|
telemetry.IncrCounter(1, "query", req.Path)
|
||||||
defer telemetry.MeasureSince(time.Now(), req.Path)
|
defer telemetry.MeasureSince(time.Now(), req.Path)
|
||||||
|
|
||||||
|
if req.Path == "/cosmos.tx.v1beta1.Service/BroadcastTx" {
|
||||||
|
return sdkerrors.QueryResult(sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "can't route a broadcast tx message"), app.trace)
|
||||||
|
}
|
||||||
|
|
||||||
// handle gRPC routes first rather than calling splitPath because '/' characters
|
// handle gRPC routes first rather than calling splitPath because '/' characters
|
||||||
// are used as part of gRPC paths
|
// are used as part of gRPC paths
|
||||||
if grpcHandler := app.grpcQueryRouter.Route(req.Path); grpcHandler != nil {
|
if grpcHandler := app.grpcQueryRouter.Route(req.Path); grpcHandler != nil {
|
||||||
|
|
Loading…
Reference in New Issue