Bitcoin Core will never discard reorged blocks, until they are pruned (which happens regardless of whether the blocks are in the active chain or not).
Only one chain is considered “active” at a time though. The rules are:
- Only consider fully valid chains (i.e. if a block contains an invalid signature or anything else illegal, it is ignored, together with all its descendants).
- Among those valid chains, only the one whose tip has the most accumulated work (roughly equal to the sum of the difficulties in the chain) is considered.
- If there are multiple valid tips of equal accumulated work, the one whose last block was received first is considered active.
All other chains are considered inactive, but if they get extended, they may end up becoming active again.
Bitcoin Core will never discard reorged blocks, until they are pruned (which happens regardless of whether the blocks are in the active chain or not).
Only one chain is considered “active” at a time though. The rules are:
- Only consider fully valid chains (i.e. if a block contains an invalid signature or anything else illegal, it is ignored, together with all its descendants).
- Among those valid chains, only the one whose tip has the most accumulated work (roughly equal to the sum of the difficulties in the chain) is considered.
- If there are multiple valid tips of equal accumulated work, the one whose last block was received first is considered active.
All other chains are considered inactive, but if they get extended, they may end up becoming active again.