Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(walletd): emit AccountChanged event on changes for account refresh #956

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Mar 6, 2024

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

  • None
  • Requires data directory to be deleted
  • Other - Please specify

Copy link

github-actions bot commented Mar 6, 2024

Test Results (CI)

494 tests  +22   494 ✅ +22   2h 4m 26s ⏱️ + 21m 15s
 60 suites +12     0 💤 ± 0 
  2 files   + 1     0 ❌ ± 0 

Results for commit 880acc8. ± Comparison against base commit 6d2b42b.

♻️ This comment has been updated with latest results.

@sdbondi sdbondi merged commit 0deb6cd into tari-project:development Mar 6, 2024
10 of 11 checks passed
sdbondi added a commit to sdbondi/tari-dan that referenced this pull request Mar 6, 2024
* development:
  fix(walletd): emit AccountChanged event on changes for account refresh (tari-project#956)
sdbondi added a commit to sdbondi/tari-dan that referenced this pull request Mar 8, 2024
* development:
  feat: change bindings package usage to git instead of local (tari-project#963)
  v0.4.1
  fix(engine): claiming burns/fees call frame error (tari-project#960)
  ci: fix windows and macos builds (tari-project#961)
  v0.4.0
  ci: add tari generate to built binaries (tari-project#959)
  refactor(engine)!: substate address based on entity id prefix (tari-project#951)
  fix(walletd): emit AccountChanged event on changes for account refresh (tari-project#956)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants