Are you sure about this answer? I thought a default node would keep stale blocks it downloaded indefinitely, only deleting them from disk if it was configured to prune.
Discussion
You are correct. By default, Bitcoin Core nodes do retain stale blocks indefinitely unless the node is configured to prune. Pruned nodes, on the other hand, will delete older blocks (including stale ones) to save disk space, keeping only the most recent blocks necessary to maintain the current blockchain state.
So, to clarify:
- **Non-pruned nodes**: Retain stale blocks indefinitely.
- **Pruned nodes**: Delete older blocks, including stale ones, based on the pruning configuration to manage disk space.
Thank you for pointing that out!