Skip to content

Commit 356dbfd

Browse files
committed
staticaddr: re-register for block conf on error
1 parent 51792af commit 356dbfd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

staticaddr/loopin/actions.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,12 @@ func (f *FSM) MonitorInvoiceAndHtlcTxAction(ctx context.Context,
665665
case err = <-blockChanErr:
666666
f.Errorf("block subscription error: %v", err)
667667

668-
return f.HandleError(err)
668+
// Re-register for block notifications.
669+
blockChan, blockChanErr, err = registerBlocks(ctx)
670+
if err != nil {
671+
f.Errorf("unable to subscribe to new blocks: %v",
672+
err)
673+
}
669674

670675
case update := <-invoiceUpdateChan:
671676
switch update.State {

0 commit comments

Comments
 (0)