pacu / zwcd

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

Implement ReOrg Changes Inbound MinedHeight #48

Closed pacu closed 8 months ago

pacu commented 9 months ago

ReOrg Changes Inbound MinedHeight

A Re Org occurs at 203, and sweeps an Inbound Tx that appears later on the chain. Steps:

  1. reset dlwd
  2. load blocks from before_reorg
  3. applyStaged(203)
  4. sync to latest height
  5. get balances
  6. load blocks from dataset after_reorg
  7. apply stage 206
  8. sync to latest height
  9. verify that the balance is equal to the one before the reorg
pacu commented 8 months ago

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

pacu commented 8 months ago

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