-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wallet_state): Never store same UTXO recovery data twice
In the case of a reorganization, the wallet state update must take care to never add the same UTXO twice. This was already correctly handled for the list of `MonitoredUtxo` but not for the file containing recovery data for the received UTXOs. With this commit, the recovery data is stored under the same conditions that a MonitoredUtxo is added. This closes #272.
- Loading branch information
1 parent
55c4028
commit f4e3d49
Showing
2 changed files
with
97 additions
and
17 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