mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-02 00:52:13 +02:00
In this commit, we address a lingering TODO: before this if we had a set of HTLC’s that we knew the pre-image to on our commitment transaction after a restart, then we wouldn’t attempt to settle them. With this new change, we’ll check that we didn’t already retransmit the settles for them, and check the preimage cache to see if we already know the preimage. If we do, then we’ll immediately settle them.