Note required levels of descendant transactions in get_spendable_outputs
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 29 Sep 2023 16:16:48 +0000 (09:16 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 29 Sep 2023 17:01:21 +0000 (10:01 -0700)
commit6cf035146294119c75bab056715410e53369cced
treeb017d56ef1a01d112ae7cd2b065146b4b883473c
parent6016101ac8ff31275f31f68eef8d33e94b19c0b1
Note required levels of descendant transactions in get_spendable_outputs

Three levels of descendant transactions starting from the channel's
funding transaction should cover all potential spendable outputs.

The first level covers the commitment transaction.

The second level covers the to_self claims, to_remote claims,
second-stage HTLC claims and justice transactions.

The third levels covers the justice transactions on second-stage HTLCs,
and to_self claims on second-stage HTLCs.
lightning/src/chain/channelmonitor.rs