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