Skip to content

Commit

Permalink
[release-v2.0] ticketbuyer: Dont terminate if RescanPoint fails.
Browse files Browse the repository at this point in the history
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 1978106.
  • Loading branch information
jholdstock authored and jrick committed Nov 11, 2024
1 parent cb88e4f commit 8c66062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ticketbuyer/tb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8c66062

Please sign in to comment.