Commit 50edd424 authored by obscuren's avatar obscuren

removed hash rate from info log. Added hashrate js func

parent ac473a86
...@@ -37,6 +37,11 @@ func (js *jsre) adminBindings() { ...@@ -37,6 +37,11 @@ func (js *jsre) adminBindings() {
admin.Set("dumpBlock", js.dumpBlock) admin.Set("dumpBlock", js.dumpBlock)
admin.Set("verbosity", js.verbosity) admin.Set("verbosity", js.verbosity)
admin.Set("backtrace", js.backtrace) 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 { func (js *jsre) backtrace(call otto.FunctionCall) otto.Value {
......
...@@ -145,7 +145,7 @@ out: ...@@ -145,7 +145,7 @@ out:
} }
break out break out
case <-timer.C: case <-timer.C:
if glog.V(logger.Info) { if glog.V(logger.Debug) {
glog.Infoln("Hash rate:", self.HashRate(), "Khash") glog.Infoln("Hash rate:", self.HashRate(), "Khash")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment