Skip to content

Commit 0177eb8

Browse files
Return a fatal error instead of stopping the StopWaiter in case of ErrGlobalStateNotInChain
1 parent 0dac3c3 commit 0177eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staker/bold/bold_staker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ func (b *BOLDStaker) Start(ctxIn context.Context) {
316316
log.Error("staker: error checking latest confirmed", "err", err)
317317
if errors.Is(err, staker.ErrGlobalStateNotInChain) {
318318
b.fatalErr <- err
319-
return time.Duration(0)
320319
}
320+
return b.config.AssertionPostingInterval
321321
}
322322

323323
agreedMsgCount, agreedGlobalState, err := b.getLatestState(ctx, false)

0 commit comments

Comments
 (0)