Skip to content

Commit 6e963c7

Browse files
author
HaoyangLiu
authored
Merge pull request #1 from HaoyangLiu/feature/lcd-dev-1
Feature/lcd dev 1
2 parents d8d0ca3 + 2c22983 commit 6e963c7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

client/tendermint/cli/block.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func getBlock(cliCtx context.CLIContext, height *int64) ([]byte, error) {
3939
}
4040

4141
if !cliCtx.TrustNode {
42-
check, err := cliCtx.Certify(*height)
42+
check, err := cliCtx.Certify(res.Block.Height)
4343
if err != nil {
4444
return nil, err
4545
}
@@ -57,7 +57,7 @@ func getBlock(cliCtx context.CLIContext, height *int64) ([]byte, error) {
5757

5858
// TODO move maarshalling into cmd/rest functions
5959
// output, err := tmcodec.MarshalJSON(res)
60-
output, err := cdc.MarshalJSON(res)
60+
output, err := cdc.MarshalJSONIndent(res,"", " ")
6161
if err != nil {
6262
return nil, err
6363
}
File renamed without changes.

client/tendermint/cli/txsearch.go renamed to client/tendermint/cli/searchtx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $ gaiacli tendermint txs --tag test1,test2 --any
4747
return err
4848
}
4949

50-
output, err := cdc.MarshalJSON(txs)
50+
output, err := cdc.MarshalJSONIndent(txs,"", " ")
5151
if err != nil {
5252
return err
5353
}

client/tendermint/cli/validatorset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func getValidators(cliCtx context.CLIContext, height *int64) ([]byte, error) {
9292
}
9393
}
9494

95-
output, err := cdc.MarshalJSON(outputValidatorsRes)
95+
output, err := cdc.MarshalJSONIndent(outputValidatorsRes,"", " ")
9696
if err != nil {
9797
return nil, err
9898
}

0 commit comments

Comments
 (0)