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 --- eth/backend.go | 1 + 1 file changed, 1 insertion(+) (limited to 'eth') diff --git a/eth/backend.go b/eth/backend.go index 88456e448..982317314 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -341,6 +341,7 @@ func (s *Ethereum) Etherbase() (eb common.Address, err error) { func (s *Ethereum) StopMining() { s.miner.Stop() } func (s *Ethereum) IsMining() bool { return s.miner.Mining() } +func (s *Ethereum) HashRate() int64 { return s.miner.HashRate() } func (s *Ethereum) Miner() *miner.Miner { return s.miner } // func (s *Ethereum) Logger() logger.LogSystem { return s.logger } -- cgit v1.2.3