Description
As discussed in one of the recent Monday meetings, I would like to know what are the minimum data in lightningd.sqlite3 file in order to keep the basic functionality of the node and all its channels, but being able to forget the history of all the forwards at least.
My node is routing for free (0 base and 0 proportional) no matter what. So I think all that is needed in the DB should be some channel states and balances. Anything else?
Currently I am experimenting with wiping out the contents of forwarded_payments and channel_htlcs tables.
The above reduces the size of lightningd.sqlite3 file significantly (from 380MB to 120MB). What other table contents would be safe to delete?
Description
As discussed in one of the recent Monday meetings, I would like to know what are the minimum data in
lightningd.sqlite3file in order to keep the basic functionality of the node and all its channels, but being able to forget the history of all the forwards at least.My node is routing for free (0 base and 0 proportional) no matter what. So I think all that is needed in the DB should be some channel states and balances. Anything else?
Currently I am experimenting with wiping out the contents of
forwarded_paymentsandchannel_htlcstables.The above reduces the size of
lightningd.sqlite3file significantly (from 380MB to 120MB). What other table contents would be safe to delete?