From e11deb955162fe86356e371dd5437a141a43f628 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sun, 13 Oct 2019 01:18:32 +0200 Subject: [PATCH] Add bughunt Error log License: MIT Signed-off-by: Jakub Sztandera --- storage/post.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/storage/post.go b/storage/post.go index 0b49ff509..ea6521210 100644 --- a/storage/post.go +++ b/storage/post.go @@ -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()