From 50edd4243e6eda1e4058209d0222443091a1ac50 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 5 Apr 2015 13:05:10 +0200 Subject: removed hash rate from info log. Added hashrate js func --- cmd/geth/admin.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd') diff --git a/cmd/geth/admin.go b/cmd/geth/admin.go index f2887c6db..1515cd6ac 100644 --- a/cmd/geth/admin.go +++ b/cmd/geth/admin.go @@ -37,6 +37,11 @@ func (js *jsre) adminBindings() { admin.Set("dumpBlock", js.dumpBlock) admin.Set("verbosity", js.verbosity) admin.Set("backtrace", js.backtrace) + admin.Set("hashrate", js.hashrate) +} + +func (js *jsre) hashrate(otto.FunctionCall) otto.Value { + return js.re.ToVal(js.ethereum.Miner().HashRate()) } func (js *jsre) backtrace(call otto.FunctionCall) otto.Value { -- cgit v1.2.3