mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 19:22:40 +01:00
This commit modifies the logic within the state machine to properly populate the new field of `OutputIndex` which the HTLC stored within a channel delta. With this change, in the future we’ll be able to quickly locate a particular HTLC output in the scenario that the commitment transaction has been broadcast on-chain and we need to sweep it. Allocating a few extra bytes on-disk saves us from the guess-and-check logic+code required otherwise.