Skip to content

Deduplicate cached Cashu proofs#73

Merged
benthecarman merged 1 commit into
masterfrom
cashu-cache-fix
May 21, 2026
Merged

Deduplicate cached Cashu proofs#73
benthecarman merged 1 commit into
masterfrom
cashu-cache-fix

Conversation

@benthecarman
Copy link
Copy Markdown
Collaborator

Keep the in-memory proofs cache aligned with the KV store's one-proof-per-Y invariant when proofs are re-added. Replacing cached entries prevents retries or recovery replays from duplicating proofs and inflating reported balances or proof enumeration results.

Copy link
Copy Markdown
Contributor

@thesimplekid thesimplekid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find.

Comment thread orange-sdk/src/trusted_wallet/cashu/cashu_store.rs Outdated
Keep the in-memory proofs cache aligned with the KV store's one-proof-per-Y
invariant when proofs are re-added or repeated within one update. Replacing
cached entries prevents retries or recovery replays from duplicating proofs
and inflating reported balances or proof enumeration results.
@benthecarman benthecarman merged commit c8f6c92 into master May 21, 2026
3 of 4 checks passed
@benthecarman benthecarman deleted the cashu-cache-fix branch May 21, 2026 02:40
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