feat: update settlement workflow
CI/CD Stage / stage (push) Failing after 37s

This commit is contained in:
2026-09-22 16:26:16 +03:30
parent 4ae5bb615b
commit 01d13dbbf2
3 changed files with 16 additions and 1 deletions
+3
View File
@@ -119,6 +119,9 @@ func (s Submitter) Submit(ctx context.Context, record ledger.Settlement) (string
err := fmt.Errorf("kuknos rejected transaction: status=%d code=%s", resp.StatusCode, response.Extras.ResultCodes.Transaction)
span.SetStatus(codes.Error, err.Error())
span.RecordError(err)
if response.Extras.ResultCodes.Transaction == "tx_bad_seq" {
return "", ledger.PermanentSubmissionError{Err: err}
}
return "", err
}
return response.Hash, nil