platramos / tokenTrust

Python based blockchain that is more datastore than currency
0 stars 0 forks source link

Chain Truncation at Expiry of TX #7

Open pduldig-at-tw opened 7 years ago

pduldig-at-tw commented 7 years ago

The contents of the 'publish' TX should have a time limit. I propose 1 day to max of 6 months. The max value could be a consensus parameter.

The idea being is that this expiry value causes the TX to be removed from the UTXO pool. The inputs are tally'd and to a daily 'flattened ledger' block. All previous blocks containing all expired TX can be deleted from disk. (maybe we make it non-compulsory to drop the blocks, but compulsory to retain the merkle roots of each block).