Merge pull request #357 from filecoin-project/bughunt/repost

Add bughunt Error log
This commit is contained in:
Whyrusleeping 2019-10-14 10:27:31 +09:00 committed by GitHub
commit 990147a4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,13 @@ func (m *Miner) scheduleNextPost(ppe uint64) {
}
func (m *Miner) computePost(ppe uint64) func(ts *types.TipSet, curH uint64) error {
called := 0
return func(ts *types.TipSet, curH uint64) error {
if called > 0 {
log.Errorw("BUG: computePost callback called again", "ppe", ppe,
"height", ts.Height(), "curH", curH, "called", called)
}
called++
ctx := context.TODO()