Skip over the bug
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
1f9b3755bd
commit
a38adb3b44
@ -99,11 +99,12 @@ func (m *Miner) scheduleNextPost(ppe uint64) {
|
|||||||
func (m *Miner) computePost(ppe uint64) func(ts *types.TipSet, curH uint64) error {
|
func (m *Miner) computePost(ppe uint64) func(ts *types.TipSet, curH uint64) error {
|
||||||
called := 0
|
called := 0
|
||||||
return func(ts *types.TipSet, curH uint64) error {
|
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++
|
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()
|
ctx := context.TODO()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user