pacu / zwcd

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

implement ReOrg Removes Outbound TxAnd Is Never Mined #50

Closed pacu closed 8 months ago

pacu commented 9 months ago

ReOrg Removes Outbound TxAnd Is Never Mined

Transaction was included in a block, and then is not included in a block after a reorg, and expires. Steps:

  1. create fake chain 1a. sync to latest height
  2. send transaction to recipient address
  3. getIncomingTransaction
  4. stage transaction at sentTxHeight
  5. applyHeight(sentTxHeight)
  6. sync to latest height 6a. verify that there's a pending transaction with a mined height of sentTxHeight
  7. stage 15 blocks from sentTxHeigth to cause a reorg
  8. sync to latest height
  9. verify that there's an expired transaction as a pending transaction
pacu commented 8 months ago

implemented https://github.com/zingolabs/zingolib/pull/625