removed hash rate from info log. Added hashrate js func

This commit is contained in:
obscuren
2015-04-05 13:05:10 +02:00
parent ac473a8623
commit 50edd4243e
2 changed files with 6 additions and 1 deletions

View File

@ -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 {