Skip to content

Commit

Permalink
chore: record mined block error
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Dec 4, 2023
1 parent 4ca124e commit edfa2c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miner/multiminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ func (m *Miner) mineOneForAll(ctx context.Context, base *MiningBase) []*winPoStR
}
tMining.err = append(tMining.err, time.Now().Format("2006-01-02 15:04:05 ")+res.err.Error())
rcd.Record(ctx, recorder.Records{"error": res.err.Error()})
log.Errorf("failed to mined block, miner %s, height: %d, error %v", tAddr.String(), height, res.err)
} else if res.winner != nil {
winPoStLk.Lock()
winPoSts = append(winPoSts, res) //nolint:staticcheck
Expand Down

0 comments on commit edfa2c5

Please sign in to comment.