aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-24 23:33:37 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-24 23:33:37 +0800
commit59b6b619a2d257b6165f9b18dcab566a16eee2a2 (patch)
tree37ce19570898371a4a3edb67f01001c04ad922a3 /rpc
parentb9b7442b74a3a533f3b6eeefe6a1415d59eb8ccf (diff)
downloaddexon-59b6b619a2d257b6165f9b18dcab566a16eee2a2.tar.gz
dexon-59b6b619a2d257b6165f9b18dcab566a16eee2a2.tar.zst
dexon-59b6b619a2d257b6165f9b18dcab566a16eee2a2.zip
Don't expose backend directly
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 4bc199176..37ab6e1d4 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -60,9 +60,9 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
}
*reply = common.ToHex(crypto.Sha3(common.FromHex(args.Data)))
case "web3_clientVersion":
- *reply = api.xeth().Backend().Version()
+ *reply = api.xeth().ClientVersion()
case "net_version":
- *reply = string(api.xeth().Backend().ProtocolVersion())
+ *reply = api.xeth().NetworkVersion()
case "net_listening":
*reply = api.xeth().IsListening()
case "net_peerCount":
@@ -84,7 +84,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
case "eth_accounts":
*reply = api.xeth().Accounts()
case "eth_blockNumber":
- v := api.xeth().Backend().ChainManager().CurrentBlock().Number()
+ v := api.xeth().CurrentBlock().Number()
*reply = common.ToHex(v.Bytes())
case "eth_getBalance":
args := new(GetBalanceArgs)