BYOC: fix payment ticket count calc#3650
Merged
ad-astra-video merged 8 commits intomasterfrom Jul 21, 2025
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3650 +/- ##
===================================================
+ Coverage 31.86089% 31.96943% +0.10854%
===================================================
Files 156 156
Lines 47359 47364 +5
===================================================
+ Hits 15089 15142 +53
+ Misses 31382 31328 -54
- Partials 888 894 +6
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this pull request do? Explain your changes. (required)
Updates
createPaymentto accurately calculate ticket count.Specific updates (required)
makedid not have a length as expected. Instead it has a capacity of the providedlen(ticket.SenderParams)How did you test each of these updates (required)
Tested locally using Agent SPE request example and observed the ticket count changed with each change in
timeout_secondsin the request to accurately send 1 ticket per second of expected compute.Does this pull request close any open issues?
Checklist:
makeruns successfully./test.shpass