Merge PR #3426: Various changes to version cmd, revert those which previously broke ABI

* version prints out short info by default

Handle -o json, add --long flag to print full version info.

* Add distclean target to Makefile

* Update PENDING.md

* Add missing targets in .PHONY
This commit is contained in:
Alessio Treglia
2019-01-29 23:25:43 +01:00
committed by Christopher Goes
parent 172a4510c7
commit 0ed6de0cbd
6 changed files with 63 additions and 17 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ func handleQueryApp(app *BaseApp, path []string, req abci.RequestQuery) (res abc
return abci.ResponseQuery{
Code: uint32(sdk.CodeOK),
Codespace: string(sdk.CodespaceRoot),
Value: []byte(version.GetVersion()),
Value: []byte(version.Version),
}
default:
result = sdk.ErrUnknownRequest(fmt.Sprintf("Unknown query: %s", path)).Result()