Skip to content

Commit 6cf0351

Browse files
committed
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.
1 parent 6016101 commit 6cf0351

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,8 +1680,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
16801680
/// missed/unhandled descriptors. For the purpose of gathering historical records, if the
16811681
/// channel close has fully resolved (i.e., [`ChannelMonitor::get_claimable_balances`] returns
16821682
/// an empty set), you can retrieve all spendable outputs by providing all descendant spending
1683-
/// transactions starting from the channel's funding or closing transaction that have at least
1684-
/// [`ANTI_REORG_DELAY`] confirmations.
1683+
/// transactions starting from the channel's funding transaction and going down three levels.
16851684
///
16861685
/// `tx` is a transaction we'll scan the outputs of. Any transaction can be provided. If any
16871686
/// outputs which can be spent by us are found, at least one descriptor is returned.

0 commit comments

Comments
 (0)