Extracted Clients into a consistent interface, fixed type issue in http.Client

This commit is contained in:
Ethan Frey
2017-02-24 17:05:14 +01:00
parent 7c26be3242
commit ce044dbb76
3 changed files with 72 additions and 5 deletions
+5
View File
@@ -16,6 +16,7 @@ package localclient
import (
nm "github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/rpc/client"
"github.com/tendermint/tendermint/rpc/core"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/tendermint/tendermint/types"
@@ -38,6 +39,10 @@ func New(node *nm.Node) Client {
}
}
func (c Client) _assertIsClient() client.Client {
return c
}
func (c Client) Status() (*ctypes.ResultStatus, error) {
return core.Status()
}