diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-22 18:47:32 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2015-06-22 18:47:32 +0800 |
commit | 2e0b56a72b3eafc89938003da29c06496ac9ad4e (patch) | |
tree | eba3eb3a822da0ba7de98d9c7b6dc8601a63db0a /rpc/comms/inproc.go | |
parent | 2737baa6577a337f33f020d587af100c9bda3585 (diff) | |
download | go-tangerine-2e0b56a72b3eafc89938003da29c06496ac9ad4e.tar go-tangerine-2e0b56a72b3eafc89938003da29c06496ac9ad4e.tar.gz go-tangerine-2e0b56a72b3eafc89938003da29c06496ac9ad4e.tar.bz2 go-tangerine-2e0b56a72b3eafc89938003da29c06496ac9ad4e.tar.lz go-tangerine-2e0b56a72b3eafc89938003da29c06496ac9ad4e.tar.xz go-tangerine-2e0b56a72b3eafc89938003da29c06496ac9ad4e.tar.zst go-tangerine-2e0b56a72b3eafc89938003da29c06496ac9ad4e.zip |
added RPC start/stop support
Diffstat (limited to 'rpc/comms/inproc.go')
-rw-r--r-- | rpc/comms/inproc.go | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/rpc/comms/inproc.go b/rpc/comms/inproc.go index b9c4e93d9..5c84b8fd8 100644 --- a/rpc/comms/inproc.go +++ b/rpc/comms/inproc.go @@ -3,15 +3,12 @@ package comms import ( "fmt" - "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/rpc/api" "github.com/ethereum/go-ethereum/rpc/codec" "github.com/ethereum/go-ethereum/rpc/shared" - "github.com/ethereum/go-ethereum/xeth" ) type InProcClient struct { - api api.EthereumApi + api shared.EthereumApi codec codec.Codec lastId interface{} lastJsonrpc string @@ -31,10 +28,8 @@ func (self *InProcClient) Close() { } // Need to setup api support -func (self *InProcClient) Initialize(xeth *xeth.XEth, eth *eth.Ethereum) { - if apis, err := api.ParseApiString(api.AllApis, self.codec, xeth, eth); err == nil { - self.api = api.Merge(apis...) - } +func (self *InProcClient) Initialize(offeredApi shared.EthereumApi) { + self.api = offeredApi } func (self *InProcClient) Send(req interface{}) error { |