"strings"
"time"
+ "github.com/bytom/api"
"github.com/bytom/blockchain"
"github.com/bytom/blockchain/rpc"
"github.com/bytom/env"
// Wrapper rpc call api.
func ClientCall(path string, req ...interface{}) (interface{}, int) {
- var response = &blockchain.Response{}
+ var response = &api.Response{}
var request interface{}
if req != nil {
client.Call(context.Background(), path, request, response)
switch response.Status {
- case blockchain.FAIL:
+ case api.FAIL:
jww.ERROR.Println(response.Msg)
return nil, ErrRemote
case "":