by crazypython · 5y ago · 0 comments
The ability to prune older blockchain data is an inherent feature of blockchain, as explained by Satoshi himself:
> Once the latest transaction in a coin is buried under enough blocks, the spent transactions before it can be discarded to save disk space. To facilitate this without breaking the block's hash, transactions are hashed in a Merkle Tree [7][2][5], with only the root included in the block's hash. Old blocks can then be compacted by stubbing off branches of the tree. The interior hashes do not need to be stored.
Only the recent several days need to be stored for security, which allows Bitcoin to run very securely with just 7GB of space.
[0]: https://github.com/bitcoin-dot-org/Bitcoin.org/pull/3624
Everyone should have this quote ready when there's an inevitable "but there's no tampering of the log, and all transactions are kept forever and can be verified!"
That is not enough.
Blockchain is proposed for various things like, for example, land registries. They have to be kept around indefinitely long. In many countries financial institutions are required by law to keep financial transactions around for 4 years. Ans so on.
But yeah, sure, go ahead and remove all historical data "because new transaction is mathematically valid".
If you have a copy of the latest block and the older verified block headers, you can trustlessly verify older blocks that people give you.
> But yeah, sure, go ahead and remove all historical data "because new transaction is mathematically valid".
Archival nodes– nodes that store full history– still exist and are still needed. You can query them from a normal full node and get their blocks.