Run process

This commit is contained in:
Jae Kwon
2015-04-16 09:46:35 -07:00
parent adccd8f878
commit 9ec6258ed0
5 changed files with 69 additions and 27 deletions

View File

@ -8,6 +8,7 @@ import (
"net/http"
"github.com/tendermint/tendermint/binary"
. "github.com/tendermint/tendermint/common"
)
func Call(remote string, method string, params []interface{}, dest interface{}) (interface{}, error) {
@ -30,6 +31,8 @@ func Call(remote string, method string, params []interface{}, dest interface{})
return dest, err
}
log.Debug(Fmt("RPC response: %v", string(responseBytes)))
// Parse response into JSONResponse
response := RPCResponse{}
err = json.Unmarshal(responseBytes, &response)