Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(walletd): emit AccountChanged event on changes for account refresh (
#956) Description --- Emit missing event if the account is updated via refresh. Motivation and Context --- The account monitor only emitted the AccountChanged event after a successful transaction involving the account is detected. However, if a client (e.g. cucumber) is polling the account refresh, the refresh can detect changes to the account before the transaction is detected as complete. This is the typical case as the cucumber polls faster than the wallet polls the indexer for a transaction result. This bug led to `Claim and transfer confidential assets via wallet daemon` never finishing because once the finalised transaction comes through, there are no changes detected because the refresh already updated the account. How Has This Been Tested? --- `Claim and transfer confidential assets via wallet daemon` cucumber completes. What process can a PR reviewer use to test or verify this change? --- CI Breaking Changes --- - [x] None - [ ] Requires data directory to be deleted - [ ] Other - Please specify
- Loading branch information
Showing
3 changed files
with
57 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
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