diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-05-15 19:33:33 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-05-16 15:39:35 +0800 |
commit | 536b3b416c6ff53ea11a0d29dcc351a6d7919901 (patch) | |
tree | 84f0a2c60601ce9248b1be19de86f82202b3c06a /consensus/ethash/sealer.go | |
parent | 37d280da411eb649ce22ab69827ac5aacd46534b (diff) | |
download | go-tangerine-536b3b416c6ff53ea11a0d29dcc351a6d7919901.tar go-tangerine-536b3b416c6ff53ea11a0d29dcc351a6d7919901.tar.gz go-tangerine-536b3b416c6ff53ea11a0d29dcc351a6d7919901.tar.bz2 go-tangerine-536b3b416c6ff53ea11a0d29dcc351a6d7919901.tar.lz go-tangerine-536b3b416c6ff53ea11a0d29dcc351a6d7919901.tar.xz go-tangerine-536b3b416c6ff53ea11a0d29dcc351a6d7919901.tar.zst go-tangerine-536b3b416c6ff53ea11a0d29dcc351a6d7919901.zip |
cosensus, core, eth, params, trie: fixes + clique history cap
Diffstat (limited to 'consensus/ethash/sealer.go')
-rw-r--r-- | consensus/ethash/sealer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/consensus/ethash/sealer.go b/consensus/ethash/sealer.go index 3a0919ca9..43db1fcb7 100644 --- a/consensus/ethash/sealer.go +++ b/consensus/ethash/sealer.go @@ -270,7 +270,7 @@ func (ethash *Ethash) remote(notify []string, noverify bool) { start := time.Now() if !noverify { if err := ethash.verifySeal(nil, header, true); err != nil { - log.Warn("Invalid proof-of-work submitted", "sealhash", sealhash, "elapsed", time.Since(start), "err", err) + log.Warn("Invalid proof-of-work submitted", "sealhash", sealhash, "elapsed", common.PrettyDuration(time.Since(start)), "err", err) return false } } @@ -279,7 +279,7 @@ func (ethash *Ethash) remote(notify []string, noverify bool) { log.Warn("Ethash result channel is empty, submitted mining result is rejected") return false } - log.Trace("Verified correct proof-of-work", "sealhash", sealhash, "elapsed", time.Since(start)) + log.Trace("Verified correct proof-of-work", "sealhash", sealhash, "elapsed", common.PrettyDuration(time.Since(start))) // Solutions seems to be valid, return to the miner and notify acceptance. solution := block.WithSeal(header) |