From 41b83fe1cd6d49ee68ab44aa87812d716f0e4399 Mon Sep 17 00:00:00 2001 From: Kobi Gurkan Date: Sun, 12 Apr 2015 15:17:07 +0300 Subject: adds eth_hashrate RPC method --- xeth/xeth.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xeth') diff --git a/xeth/xeth.go b/xeth/xeth.go index afcb33e4c..e221f6d20 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -276,6 +276,10 @@ func (self *XEth) IsMining() bool { return self.backend.IsMining() } +func (self *XEth) HashRate() int64 { + return self.backend.HashRate() +} + func (self *XEth) EthVersion() string { return fmt.Sprintf("%d", self.backend.EthVersion()) } -- cgit v1.2.3 From 459d8987050e85fcae23d169453fc4d7f185eefc Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 28 Apr 2015 11:16:03 +0200 Subject: eth, rpc, xeth: ext_hanhrate => eth_hashrate --- xeth/xeth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xeth') diff --git a/xeth/xeth.go b/xeth/xeth.go index 71c39fd42..710fec5c5 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -281,7 +281,7 @@ func (self *XEth) IsMining() bool { } func (self *XEth) HashRate() int64 { - return self.backend.HashRate() + return self.backend.Miner().HashRate() } func (self *XEth) EthVersion() string { -- cgit v1.2.3