gRPC-gateway routes as alternative to legacy tendermint REST endpoints (#7965)

* WIP

* WIP setup

* WIP setup testsuite

* add node_info

* add GetLatestBlock,GetBlockByHeight grpc endpoints

* add GetValidatorSetByHeight, GetLatestValidatorSet

* fix lint

* fix tests

* proto format

* Update Makefile

* review changes

* Makefile format

* handle nil pagination

* rename query.go to service.go

* format Makefile

* format Makefile

* review changes

* review changes

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
MD Aleem
2020-11-25 15:58:11 +00:00
committed by GitHub
co-authored by mergify[bot]
parent a9dd334c34
commit c58a8923a0
16 changed files with 5153 additions and 9 deletions
+3
View File
@@ -66,6 +66,9 @@ func startInProcess(cfg Config, val *Validator) error {
// Add the tx service in the gRPC router.
app.RegisterTxService(val.ClientCtx)
// Add the tendermint queries service in the gRPC router.
app.RegisterTendermintService(val.ClientCtx)
}
if val.APIAddress != "" {