mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-27 03:31:42 +00:00
Run process
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user