13
2
The original bitcoin paper suggests a method to discard old transactions. One should compute the Merkle Tree of the entire transaction history, and store only part of the tree.
However, I didn't notice this method implemented. BuildMerkleTree stores it in memory only, and seems to assume you're holding all transaction history, and the serialization method stores the actual transactions and does not store the Merkle Tree.
Is that implemented? Can you give me a reference to where is it in the code?
If not, is it planned for a specific future release?
2bitcoin.org is where the standard client is hosted, but it's not generally used to refer to the client itself - it's usually called the standard client or the Satoshi client. AFAIK it does not currently implement pruning transactions. – Meni Rosenfeld – 2012-02-20T11:36:31.157
@MeniRosenfeld Fixed, thanks. I'm not sure how exactly it should be done, and an implementation can make things clearer. Any calculation for how big a block will be with no pruning, in the next few years? – Elazar Leibovich – 2012-02-20T11:41:55.737
I edited your question to include asking when is such a feature planned, hope you don't mind. (Also added a closing question mark to the title) – ripper234 – 2012-02-20T12:58:58.153
1I was sure I had asked a similar question (about planning) in the past, but didn't find it now. I vaguely remmeber Gavin saying that "it's the next thing on the roadmap after multisig", but I don't have a citation, and I think it wasn't formalized anyway. For the cord, the straight answer to your question is "No, the current client does not prune history". – ripper234 – 2012-02-20T13:00:33.190
possible duplicate of Is "Reclaiming Disk Space" already implemented? How effective will it be?
– Chris Moore – 2012-02-20T19:38:26.517See also the discussion and links in https://en.bitcoin.it/wiki/Thin_Client_Security
– Chris Moore – 2012-02-20T19:39:37.730