pacu / zwcd

Zcash Wallet Community Developer tasks
MIT License
2 stars 0 forks source link

Implement ReOrg Expires Inbound Transaction #45

Closed pacu closed 8 months ago

pacu commented 9 months ago

ReOrg Expires Inbound Transaction

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.
pacu commented 8 months ago

https://github.com/zingolabs/zingolib/pull/615

pacu commented 8 months ago

https://github.com/zingolabs/darksidewalletd-datasets/pull/16