-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve find wallet for redemption logic (#651)
Refs: threshold-network/token-dashboard#553 Here we improve the logic of `findWalletForRedemption` function to handle the corner case when a wallet's main UTXO known to the `Bridge` was actually spent on Bitcoin but that change was not yet reflected to the `Bridge`. So far, `findWalletForRedemption` relied on `findAllUnspentTransactionOutputs` which does not return spent UTXOs so determining the actual main UTXO was not possible in the aforementioned corner case. Now, the `findWalletForRedemption` looks for recent wallet transaction history on Bitcoin and tries to match the actual main UTXO based on that. This change will allow submitting new redemption requests without downtime, even if the target wallet is performing an action at the moment.
- Loading branch information
Showing
9 changed files
with
607 additions
and
116 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
Oops, something went wrong.