Skip to content

Commit

Permalink
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).
  • Loading branch information
jholdstock committed Sep 11, 2024
1 parent acb201e commit 98295a9
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 @@ -109,7 +109,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 98295a9

Please sign in to comment.