diff --git a/storage/miner.go b/storage/miner.go index ef8045231..2f10da05c 100644 --- a/storage/miner.go +++ b/storage/miner.go @@ -24,7 +24,7 @@ import ( var log = logging.Logger("storageminer") -const PoStConfidence = 1 +const PoStConfidence = 3 type Miner struct { api storageMinerApi diff --git a/storage/post.go b/storage/post.go index ea6521210..819f2d9da 100644 --- a/storage/post.go +++ b/storage/post.go @@ -99,11 +99,12 @@ 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++ + if called > 1 { + log.Errorw("BUG: computePost callback called again", "ppe", ppe, + "height", ts.Height(), "curH", curH, "called", called-1) + return nil + } ctx := context.TODO()