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

dataset for changing an incoming tx's index within a block #14

Closed

Conversation

pacu
Copy link
Collaborator

@pacu pacu commented Oct 19, 2023

Closes pacu/zwcd#44

fix after reorg script. generate datasets

Fix After Reorg dataset
@pacu pacu force-pushed the arot-changes-mined-tx-index branch from 78ca2c4 to 176aa3e Compare October 19, 2023 20:20
pacu added a commit to pacu/zingolib that referenced this pull request Oct 21, 2023
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/zwcd#45
@pacu pacu closed this Nov 21, 2023
pacu added a commit to pacu/zingolib that referenced this pull request Nov 23, 2023
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/zwcd#45
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.

None yet

1 participant