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(wallet): handle not found rpc error in utxo scanning #4249

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jun 30, 2022

Description

  • handles not found RPC error in UTXO scanning
  • always remove scanned blocks that were not found on the chain, even if no previously scanned block was found on chain

Motivation and Context

If a reorg has occurred on previously scanned UTXOs, the scanner will fail. It should handle this error by rescanning at that block height.

Always removing the previous scanned blocks that were not found may fix the UNIQUE key violation that has been seen cucumber tests. However, I was not able to reproduce the failure locally.

How Has This Been Tested?

In cucumber test
Partially manual (scanning works, but reorg case not tested)

@sdbondi sdbondi force-pushed the wallet-cucumber-scanning-duplicate-scanned-block branch from a0102ca to 76dd43d Compare June 30, 2022 13:57
stringhandler
stringhandler previously approved these changes Jul 4, 2022
@sdbondi sdbondi force-pushed the wallet-cucumber-scanning-duplicate-scanned-block branch from c3d40bf to 3b256e4 Compare July 4, 2022 11:12
@aviator-app aviator-app bot removed the mq-failed label Jul 4, 2022
@aviator-app aviator-app bot merged commit bcd14c7 into tari-project:development Jul 4, 2022
@sdbondi sdbondi deleted the wallet-cucumber-scanning-duplicate-scanned-block branch July 4, 2022 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants