Add /account path to query

This commit is contained in:
Ethan Frey 2017-02-13 16:50:17 +01:00
parent 5be9db68db
commit 7c481f8c72
1 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,12 @@ func (app *Basecoin) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQu
return
}
// handle special path for account info
if reqQuery.Path == "/account" {
reqQuery.Path = "/key"
reqQuery.Data = append([]byte("base/a/"), reqQuery.Data...)
}
resQuery, err := app.eyesCli.QuerySync(reqQuery)
if err != nil {
resQuery.Log = "Failed to query MerkleEyes: " + err.Error()