Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
de484419
Unverified
Commit
de484419
authored
5 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Slightly fixed TODO comment
parent
f8b6157e
Branches
Branches containing commit
No related tags found
1 merge request
!129
Replace IRedeemer.redeem with a counter-accepting API, update callers
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/_zkapauthorizer/controller.py
+6
-1
6 additions, 1 deletion
src/_zkapauthorizer/controller.py
with
6 additions
and
1 deletion
src/_zkapauthorizer/controller.py
+
6
−
1
View file @
de484419
...
...
@@ -706,7 +706,12 @@ class PaymentController(object):
if
num_tokens
is
None
:
num_tokens
=
self
.
default_token_count
tokens
=
self
.
_get_random_tokens_for_voucher
(
voucher
,
num_tokens
)
# TODO: Actually count up from 0 to maxCounter instead of only passing 0 here.
# TODO: Actually count up from the voucher's current counter value to
# maxCounter instead of only passing 0 here. Starting at 0 is fine
# for a new voucher but if we partially redeemed a voucher on a
# previous run and this call comes from `_check_pending_vouchers` then
# we should skip any already-redeemed counter values.
#
# https://github.com/PrivateStorageio/ZKAPAuthorizer/issues/124
return
self
.
_perform_redeem
(
voucher
,
0
,
tokens
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment