From 5b638c17e03ab87c5be6750383e63d25cb07be94 Mon Sep 17 00:00:00 2001 From: antho1404 Date: Thu, 6 Feb 2020 10:41:15 +0700 Subject: [PATCH 1/2] index all tx in order to have data for `/txs` API --- config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/config.go b/config/config.go index 949cc8621..ab2f30ed6 100644 --- a/config/config.go +++ b/config/config.go @@ -108,6 +108,7 @@ func defaultConfig() (*Config, error) { c.Tendermint.Config.Consensus.TimeoutCommit = 5 * time.Second c.Tendermint.Config.Instrumentation.Prometheus = true c.Tendermint.Config.Instrumentation.PrometheusListenAddr = "0.0.0.0:26660" + c.Tendermint.Config.TxIndex.IndexAllTags = true c.Cosmos.RelativePath = "cosmos" c.Cosmos.MinGasPrices = "1.0atto" From 9be16f9584450b7308965a8ac3929dd255716cb1 Mon Sep 17 00:00:00 2001 From: antho1404 Date: Thu, 6 Feb 2020 10:41:42 +0700 Subject: [PATCH 2/2] configure LCD with a trusted node to fix `/block` API --- core/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/main.go b/core/main.go index c9216b880..28b46ffb5 100644 --- a/core/main.go +++ b/core/main.go @@ -224,7 +224,10 @@ func main() { logrus.WithField("module", "main").Fatalln(err) } - cliCtx := context.NewCLIContext().WithCodec(codec.Codec).WithClient(client) + cliCtx := context.NewCLIContext(). + WithCodec(codec.Codec). + WithClient(client). + WithTrustNode(true) mux := mux.NewRouter() cosmosclient.RegisterRoutes(cliCtx, mux) authrest.RegisterTxRoutes(cliCtx, mux)