aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-15 23:44:25 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-15 23:44:25 +0800
commitf2a2164184a9397d8e6100c370595ccdcd00ca0b (patch)
treebe5f43c0255c6351b2c1b9a6db191318974fe664 /rpc
parentf475a013264b5036dfe9fcc04e21c4112845b9a2 (diff)
parent1e3f4877c0e9ebf58ffa06b0b119fdf3bab21658 (diff)
downloaddexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.gz
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.bz2
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.lz
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.xz
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.zst
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.zip
Merge pull request #990 from zsfelfoldi/gasprice
eth: add GasPriceOracle
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go2
-rw-r--r--rpc/api/eth.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go
index e35395734..8b9a080f8 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -59,7 +59,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
case "eth_mining":
*reply = api.xeth().IsMining()
case "eth_gasPrice":
- v := xeth.DefaultGasPrice()
+ v := api.xeth().DefaultGasPrice()
*reply = newHexNum(v.Bytes())
case "eth_accounts":
*reply = api.xeth().Accounts()
diff --git a/rpc/api/eth.go b/rpc/api/eth.go
index a0b9dad86..943f19b90 100644
--- a/rpc/api/eth.go
+++ b/rpc/api/eth.go
@@ -139,7 +139,7 @@ func (self *ethApi) IsMining(req *shared.Request) (interface{}, error) {
}
func (self *ethApi) GasPrice(req *shared.Request) (interface{}, error) {
- return newHexNum(xeth.DefaultGasPrice().Bytes()), nil
+ return newHexNum(self.xeth.DefaultGasPrice().Bytes()), nil
}
func (self *ethApi) GetStorage(req *shared.Request) (interface{}, error) {