In the context of a fully indexed, non-pruned Bitcoin Core node, I am exploring the duration and persistence of data related to disconnected blocks and their contained transactions due to a blockchain reorganization. Specifically, my query revolves around whether such data is retained indefinitely on disk by default, or if it is subject to any expiration or automatic deletion after a certain period.

Additionally, I am interested in understanding the usability of RPC methods, such as getblock and gettransaction, with respect to retrieving information about blocks and transactions that have become disconnected due to reorganization events. Is it always possible to utilize these methods to access data about such entities, or are there circumstances or timeframes post-reorganization that could limit this capability?

1 Answer 1


As of the latest Bitcoin Core release (25.0) and the upcoming 26.0 one, yes, reorganized blocks are retained indefinitely if pruning is not enabled, and they remain accessible through getblock and getrawtransaction (the latter only with txindex enabled). Note that gettransaction is a wallet RPC, which is entirely unrelated to the node's blockchain data.

Old blocks (regardless of whether they have been reorganized out or not) are only deleted through pruning.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.