Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIP60 Wallet Transaction Events #85

Open
lnbc1QWFyb24 opened this issue Oct 14, 2024 · 2 comments
Open

NIP60 Wallet Transaction Events #85

lnbc1QWFyb24 opened this issue Oct 14, 2024 · 2 comments

Comments

@lnbc1QWFyb24
Copy link

I was playing around with the Shopstr NIP-60 wallet and noticed that when ecash is sent from the wallet, two kind 7376 events are published to the relay. One event has direction out which is correct, but there is another in event published with the same amount which cancels out the first event meaning that the correct balance of the wallet cannot be derived.

@calvadev
Copy link
Collaborator

calvadev commented Oct 14, 2024

Thanks for the find. Does this happen when sending ecash and paying out to a Lightning address? And with any amount or when sending half the wallet balance?

@calvadev
Copy link
Collaborator

calvadev commented Oct 14, 2024

Ahh, this is coming from when change is left over on a spend. The change amount is published as coming in, but since the proofs that are coming in are technically already set in the wallet state there probably isn't a need to re-publish them unless entirely new proofs were created.

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

No branches or pull requests

2 participants