-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wallet coinbases not validated correctly (#6074)
Description --- Fixes adding inputs scanned from the block to be improperly marked on adding to the database. Motivation and Context --- Inputs scanned, such as coinbases are marked as `unspent` while this is technically true from the wallet's perspective as they are unspent and are detected from a mined block. We need to mark them as `unspentUnconfiremd`. We need to make sure they are properly confirmed by the validation task. The validation task will pick up these outputs and flag them as spent/reorged etc. But in the current case because they are flagged as `unspent` the wallet can select them when spending, although they might not have passed the confirmation time, or the might have been reorged out of the main chain.
- Loading branch information
1 parent
057a68c
commit bb66df1
Showing
13 changed files
with
520 additions
and
259 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
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.