Skip to content

Commit

Permalink
v3tool: Continue if a ticket already has paid fee.
Browse files Browse the repository at this point in the history
v3tool will now attempt to register all tickets with the VSP rather
than immediately exiting if one of the tickets already has a paid fee.
  • Loading branch information
jholdstock committed Jul 17, 2024
1 parent 63b2a61 commit a80e40d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/v3tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ func run() int {
if errors.Is(err, context.Canceled) {
return 0
}

// Continue to the next ticket if this one already has a paid fee.
var apiErr types.ErrorResponse
if errors.As(err, &apiErr) && apiErr.Code == types.ErrFeeAlreadyReceived {
continue
}

log.Errorf("getFeeAddress error: %v", err)
return 1
}
Expand Down

0 comments on commit a80e40d

Please sign in to comment.