Betting logs
This commit is contained in:
parent
3fe8b1e732
commit
9b28be14cd
@ -396,7 +396,11 @@ func (m *Miner) mineOne(ctx context.Context, base *MiningBase) (*types.BlockMsg,
|
||||
|
||||
tCreateBlock := build.Clock.Now()
|
||||
dur := tCreateBlock.Sub(start)
|
||||
log.Infow("mined new block", "cid", b.Cid(), "height", b.Header.Height, "miner", b.Header.Miner, "parents", len(b.Header.Parents), "took", dur)
|
||||
parentMiners := make([]address.Address, len(base.TipSet.Blocks()))
|
||||
for i, header := range base.TipSet.Blocks() {
|
||||
parentMiners[i] = header.Miner
|
||||
}
|
||||
log.Infow("mined new block", "cid", b.Cid(), "height", b.Header.Height, "miner", b.Header.Miner, "parents", parentMiners, "took", dur)
|
||||
if dur > time.Second*time.Duration(build.BlockDelaySecs) {
|
||||
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),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user