From a38adb3b441cd90534197398a9a17c1253db6b71 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 16 Oct 2019 05:13:49 +0900 Subject: [PATCH 1/2] Skip over the bug License: MIT Signed-off-by: Jakub Sztandera --- storage/post.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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() From 2ed308829a5ef41a226fc1f16a9a832dc1cea1bb Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Thu, 17 Oct 2019 09:42:32 +0900 Subject: [PATCH 2/2] Change PoSt confidence to 3 License: MIT Signed-off-by: Jakub Sztandera --- storage/miner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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