From 197810606e8dee6fa65a1a161f2f9d814f31919b Mon Sep 17 00:00:00 2001 From: jholdstock Date: Wed, 11 Sep 2024 17:30:00 +0100 Subject: [PATCH] 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). --- ticketbuyer/tb.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ticketbuyer/tb.go b/ticketbuyer/tb.go index bae70e51b..37629768c 100644 --- a/ticketbuyer/tb.go +++ b/ticketbuyer/tb.go @@ -105,7 +105,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")