Open yyforyongyu opened 1 month ago
We have this CleanStore method defined as, https://github.com/lightningnetwork/lnd/blob/75ec6da177d428ebf562557c1f0360a1d96dbfe7/routing/router.go#L130-L136
CleanStore
This is only called when the channel router starts, https://github.com/lightningnetwork/lnd/blob/75ec6da177d428ebf562557c1f0360a1d96dbfe7/routing/router.go#L355-L358
We could call it more often to save disk space. Or, build new methods to directly consult the channel commitment in htlcswitch on this particular HTLC, which removes the need to save the "network results".
htlcswitch
Is there a reason this needs to be GC'ed as opposed to just cleaned up when it's no longer needed?
We have this
CleanStore
method defined as, https://github.com/lightningnetwork/lnd/blob/75ec6da177d428ebf562557c1f0360a1d96dbfe7/routing/router.go#L130-L136This is only called when the channel router starts, https://github.com/lightningnetwork/lnd/blob/75ec6da177d428ebf562557c1f0360a1d96dbfe7/routing/router.go#L355-L358
We could call it more often to save disk space. Or, build new methods to directly consult the channel commitment in
htlcswitch
on this particular HTLC, which removes the need to save the "network results".