From 8c66062226447facd25c9e7245f895f11f504a4d Mon Sep 17 00:00:00 2001 From: jholdstock Date: Mon, 11 Nov 2024 19:41:00 +0000 Subject: [PATCH] [release-v2.0] ticketbuyer: Dont terminate if RescanPoint fails. If the call to RescanPoint fails the ticketbuyer should not be terminated forever, it can continue running and subsequent calls to RescanPoint may succeed. This is how all other errors in the ticketbuyer are handled (with the exception of incorrect passphrase error). Backport of 197810606e8dee6fa65a1a161f2f9d814f31919b. --- ticketbuyer/tb.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ticketbuyer/tb.go b/ticketbuyer/tb.go index 6938c92bc..934e98234 100644 --- a/ticketbuyer/tb.go +++ b/ticketbuyer/tb.go @@ -115,7 +115,8 @@ func (tb *TB) Run(ctx context.Context, passphrase []byte) error { // the tip block. rp, err := w.RescanPoint(ctx) if err != nil { - return err + log.Debugf("Skipping autobuyer actions: RescanPoint err: %v", err) + continue } if rp != nil { log.Debugf("Skipping autobuyer actions: transactions are not synced")