mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 19:40:36 +00:00
removed hash rate from info log. Added hashrate js func
This commit is contained in:
parent
ac473a8623
commit
50edd4243e
@ -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 {
|
||||
|
@ -145,7 +145,7 @@ out:
|
||||
}
|
||||
break out
|
||||
case <-timer.C:
|
||||
if glog.V(logger.Info) {
|
||||
if glog.V(logger.Debug) {
|
||||
glog.Infoln("Hash rate:", self.HashRate(), "Khash")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user