-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wallet): fixes bug in fetch_by_commitment (#4703)
Description --- Fixes request/response mismatch bug in fetch_by_commitment. `fetch_by_commitment` can only ever return one value, or a not found error Motivation and Context --- This error is encountered during merge mining ```text Output manager error: `Output manager storage error: `Unexpected result: `Unexpected result for database query Unspent Outputs Key. Response: Spent Output ``` This is caused by `fetch(DbKey::AnyOutputByCommitment)` returning `DbValue::SpentOutput` but the caller expects `DbKey::UnspentOutput` How Has This Been Tested? --- Merge mining works
- Loading branch information
Showing
3 changed files
with
9 additions
and
20 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