Skip to content

Remove SpendLimit param from PurchaseTickets#2542

Merged
jrick merged 3 commits intodecred:masterfrom
jholdstock:spendlimit
Sep 18, 2025
Merged

Remove SpendLimit param from PurchaseTickets#2542
jrick merged 3 commits intodecred:masterfrom
jholdstock:spendlimit

Conversation

@jholdstock
Copy link
Copy Markdown
Member

@jholdstock jholdstock commented Sep 17, 2025

The functionality of spend limit was removed from ticket purchasing in #1679. The param remains but it has no effect.

Comments from the time don't make it clear whether this was an deliberate change, but more recent comments seem to indicate that it was (also here).

We are currently in an unreleased major version bump so this seems like a good time to remove the param entirely.

@jrick
Copy link
Copy Markdown
Member

jrick commented Sep 17, 2025

I like the idea of removing this from the PurchaseTickets wallet api.

The RPC changes should be performed with an update to their respective API versions. These are already bumped compared to release-v2.0, but it's been a long while since they were last touched and there may be clients that expect this version to mean what it currently does. This can be rolled up with any other breaking RPC changes if you have any planned for the immediate future.

This param was tested to ensure it was non-negative but it was never
used for anything more.

Bumps json rpc to version 11.0.0.
This param was tested to ensure it was non-negative but it was never
used for anything more.

Bumps grpc to version 10.0.0.
@jholdstock
Copy link
Copy Markdown
Member Author

Bumped both RPC versions.

@jrick jrick merged commit 7d12bcf into decred:master Sep 18, 2025
2 checks passed
@jholdstock jholdstock deleted the spendlimit branch October 27, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants