Separate API for storageminer

This commit is contained in:
Łukasz Magiera
2019-07-24 02:09:34 +02:00
parent d0cbf02d36
commit eda03095b0
11 changed files with 112 additions and 116 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ import (
)
// NewRPC creates a new http jsonrpc client.
func NewRPC(addr string, requestHeader http.Header) (api.API, error) {
var res api.Struct
func NewRPC(addr string, requestHeader http.Header) (api.FullNode, error) {
var res api.FullNodeStruct
_, err := jsonrpc.NewClient(addr, "Filecoin", &res.Internal, requestHeader)
return &res, err
}