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

Implement a reorg that removes an incoming transaction #712

Merged
merged 3 commits into from
Nov 23, 2023

Conversation

pacu
Copy link
Collaborator

@pacu pacu commented Nov 23, 2023

[https://github.com//issues/614] Implement a reorg that removes an incoming transaction
Closes #614

Builds atop #710

In this case the wallet receives a transaction and a reorg removes it
from the chain. This can happen if the "best chain" does not contain
that transaction, and the subsequent blocks don't include it either.

  1. Setup w/ default dataset with a received transaction at received_tx_height
  2. sync up to received_tx_height minus some blocks.
  3. capture balance
  4. sync up to received_tx_height or higher and capture txid of the received transaction
  5. trigger the reorg that removes the received transaction from the chain
  6. sync to chaintip (the wallet should recover from the reorg)7
  7. verify that the balance is equal to step 3 and that the txid found on step 4
    is not present anymore.

uses dataset: zingolabs/darksidewalletd-datasets#14
Closes pacu/zcash-dev-rel-engineer#45

pacu added 3 commits November 23, 2023 14:09
Closes zingolabs#614

In this case the wallet receives a transaction and a reorg removes it
from the chain. This can happen if the "best chain" does not contain
that transaction, and the subsequent blocks don't include it either.

1. Setup w/ default dataset with a received transaction at `received_tx_height`
2. sync up to `received_tx_height` minus some blocks.
3. capture balance
4. sync up to `received_tx_height` or higher and capture txid of the received transaction
5. trigger the reorg that removes the received transaction from the chain
6. sync to chaintip (the wallet should recover from the reorg)7
7. verify that the balance is equal to step 3 and that the txid found on step 4
is not present anymore.

uses dataset: zingolabs/darksidewalletd-datasets#14
Closes pacu/zcash-dev-rel-engineer#45
Copy link
Member

@zancas zancas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM new darkside tests!!!! Hell yeah!

@zancas zancas merged commit a976dca into zingolabs:dev Nov 23, 2023
16 checks passed
@pacu pacu deleted the fixed-arot-expirex-incoming-tx branch December 4, 2023 20:30
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.

Implement a reorg that removes an incoming transaction Implement ReOrg Expires Inbound Transaction
2 participants