From a80e40d6502b31a02f232be16b4c6e1d18de1c19 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Wed, 17 Jul 2024 09:53:09 +0100 Subject: [PATCH] v3tool: Continue if a ticket already has paid fee. 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. --- cmd/v3tool/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/v3tool/main.go b/cmd/v3tool/main.go index 85721a51..2537db6e 100644 --- a/cmd/v3tool/main.go +++ b/cmd/v3tool/main.go @@ -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 }