-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure pseudo payments are deleted on sync
Before sending out a payment, the sdk inserts a pseudo payment. This ensures there is always a pending payment shown on clients directly when paying. If the call to send_payment never resulted in in actual payment being sent, these payments would sit in the database forever and never be deleted. Pseudo payments are now marked as pseudo in the database. On sync pseudo payments are deleted before inserting the updated payments from the node. Existing payments and sync state are dropped in case the client's database already contained pending payments because of this issue.
- Loading branch information
Showing
4 changed files
with
69 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters