Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Bug or feature: repeated Send subtracted from balance but not shown in Payments. #31

Open
ghost opened this issue May 26, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented May 26, 2016

Open 2 wallets.

All in "thunder Network tab" after opening channels.

In one wallet click Receive and Close.

In the other wallet send the payment:
The balance is correctly updated in both wallets
The transaction is shown in Payments

Now send payment again (without opening and closing Receive in the other wallet)
The balance is correctly updated in both wallets
The transaction is NOT shown in Payments

Not sure if it's meant to be like that or not.
(if my issue posts are annoying because the wallet is not that important let me know, no offence)

@matsjj
Copy link
Contributor

matsjj commented May 31, 2016

Ah good catch! Yes that should indeed not be the case.

I think it might be because the way payments are referenced currently (only by payment hash). There will be some refactoring soonish that will allow referencing payments by some internal id, as there are some edge cases where referencing by payment hash does not work. (Normally the wallet should disallow sending a payment again, because any hub could steal the money if they know the preimage of the payment hash already).

Don't worry, the UI is just a wrapper around a lot of library methods. If it misbehaves, theres a good chance the underlying library misbehaves as well.

I will leave this issue open until I am done with the refactoring.

@superac22
Copy link

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@matsjj @superac22 and others