How should Bitcoin applications handle chain reorganizations?
Short answer
A transaction observed in a block can lose confirmations if that block is reorganized out of the active chain. Applications must distinguish mempool observation, confirmation count, and finality policy rather than treating a single status as permanent.
Practical guidance
The engine has been tested for block/mempool reconciliation, but consumers should still design for confirmation changes and verify status against the running node.
Related reading
Bitcoin Core RPC command reference
https://bitcoincore.org/en/doc/
