On-Chain Deposit Settlement Lifecycle

From mempool sighting to finalized credit, with reorg rollback and replaced-transaction re-evaluation

On-Chain Deposit Settlement Lifecycle From mempool sighting to finalized credit, with reorg rollback and replaced-transaction re-evaluation 01 / Settlement path 02 / Reorg re-evaluation 03 / Terminal exit Detected · in mempool · depth 0 · Settlement path · seen 01 Detected in mempool · depth 0 seen Confirming · counting to N · Settlement path · waiting 02 Confirming counting to N waiting Credited · depth ≥ N · ledger posted · Settlement path · final 03 Credited depth ≥ N · ledger posted final Unconfirm · reverse credit · re-evaluate · Reorg re-evaluation · reorg Unconfirm reverse credit · re-evaluate reorg Dropped · replaced · double-spent · Terminal exit · terminal Dropped replaced · double-spent terminal reorg re-mined double-spent Legend active state waiting terminal success failure / exit

Confirmed is a threshold

  • • Depth = tip − block_height + 1; mempool is depth 0
  • • No ledger credit posts before depth reaches N
  • • N scales with asset and deposit amount

Reorg rollback

  • • A block-hash mismatch at a known height signals a reorg
  • • Unconfirm posts a compensating entry, never a delete
  • • Withdrawals freeze while the credit is reversed

Re-evaluate the tx

  • • Re-mined or back in mempool climbs toward N again
  • • A conflicting spend drops the deposit as terminal
  • • State is recomputed from the chain, so retries are idempotent