-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: sync: handle removal of unconfirmed transactions
When an unconfirmed transaction is removed from the (server) mempool, the "script status" of the scripts involving such transaction should change. For instance if the script only involves txid, it can change from `h("txid:0:")` to `null`. Unfortunately this does not always happen. Thus we don't have a way to realize that we should update our internal cache and specifically remove such transaction. To handle this case, we explicitly request each unconfirmed transaction to the server, to determine if it should be removed. This comes with a performance penalty, but it seems to be necessary.
- Loading branch information
1 parent
a14342c
commit 5021276
Showing
1 changed file
with
29 additions
and
2 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