improve slow block production logs
This commit is contained in:
parent
0aaff740e8
commit
4bbe5abf81
@ -367,15 +367,14 @@ func (m *Miner) mineOne(ctx context.Context, base *MiningBase) (*types.BlockMsg,
|
|||||||
dur := tCreateBlock.Sub(start)
|
dur := tCreateBlock.Sub(start)
|
||||||
log.Infow("mined new block", "cid", b.Cid(), "height", b.Header.Height, "took", dur)
|
log.Infow("mined new block", "cid", b.Cid(), "height", b.Header.Height, "took", dur)
|
||||||
if dur > time.Second*time.Duration(build.BlockDelaySecs) {
|
if dur > time.Second*time.Duration(build.BlockDelaySecs) {
|
||||||
log.Warn("CAUTION: block production took longer than the block delay. Your computer may not be fast enough to keep up")
|
log.Warnw("CAUTION: block production took longer than the block delay. Your computer may not be fast enough to keep up",
|
||||||
|
"tMinerBaseInfo ", tMBI.Sub(start),
|
||||||
log.Warnw("tMinerBaseInfo ", "duration", tMBI.Sub(start))
|
"tDrand ", tDrand.Sub(tMBI),
|
||||||
log.Warnw("tDrand ", "duration", tDrand.Sub(tMBI))
|
"tPowercheck ", tPowercheck.Sub(tDrand),
|
||||||
log.Warnw("tPowercheck ", "duration", tPowercheck.Sub(tDrand))
|
"tTicket ", tTicket.Sub(tPowercheck),
|
||||||
log.Warnw("tTicket ", "duration", tTicket.Sub(tPowercheck))
|
"tSeed ", tSeed.Sub(tTicket),
|
||||||
log.Warnw("tSeed ", "duration", tSeed.Sub(tTicket))
|
"tPending ", tPending.Sub(tSeed),
|
||||||
log.Warnw("tPending ", "duration", tPending.Sub(tSeed))
|
"tCreateBlock ", tCreateBlock.Sub(tPending))
|
||||||
log.Warnw("tCreateBlock ", "duration", tCreateBlock.Sub(tPending))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return b, nil
|
return b, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user