Skip to content

Conversation

@m1sterc001guy
Copy link
Contributor

This PR fixes a painpoint of the gateway. Currently if the gateway's ecash does not exactly match the requested spend amount, the spend fails (unless the operator opt ins to overspending).

A simple fix for this (and what we do in Ecash App) is to just reissue the notes that are not the exact amount to ourself. This generates a transaction, but on the next spend the gateway will have the exact notes to match the requested spend.

In practice this has worked quite well.

@m1sterc001guy m1sterc001guy mentioned this pull request Jan 29, 2026
28 tasks
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.

1 participant