novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

Refactor Wallet to work in terms of Payments which contain data derived from one or more Transactions #512

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This will be a big project. First step is to redesign the Wallet APIs so they 
don't vend Transactions directly. Then we formalize the concept of the reorg 
event horizon and teach the wallet about it (currently it's just a property of 
the SPV block store).

Once that's done, we can start throwing away the Transaction objects for old 
spent payments that have passed beyond the reorg event horizon, because we know 
they can never change in any way except for being buried deeper and deeper, 
which is typically not interesting for apps. This will reduce memory pressure 
significantly as all a Payment needs to store is really the value delta, fee 
paid and a label for it (probably one or two other things).

Original issue reported on code.google.com by hearn@google.com on 15 Jan 2014 at 4:26