carp icon indicating copy to clipboard operation
carp copied to clipboard

Option to prune spent UTXO's?

Open biofreeze opened this issue 1 year ago • 1 comments

Is there a way you guys can add a way to prune spent UTXO's? (Obviously after the 2160 required blocks to deal with rollbacks). I don't have need for spent UTXO data, so it would be great because the database will be much smaller and queries will be quicker, etc :)

biofreeze avatar Jan 18 '24 00:01 biofreeze

It could be done I guess. You could write a new "Prune" task that depends on the input & output tasks and instead of writing to the database, removes from the database

Of course adding such a task means you wouldn't be able to use any other task hat depends on this data being present, but I sounds like you're okay with that for your use-case

SebastienGllmt avatar Jan 18 '24 14:01 SebastienGllmt