Skip to content

Commit d9a25b5

Browse files
committed
f update comment to note both usages
1 parent 9440756 commit d9a25b5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lightning/src/chain/package.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -736,10 +736,13 @@ pub struct PackageTemplate {
736736
// Untractable packages have been counter-signed and thus imply that we can't aggregate
737737
// them without breaking signatures. Fee-bumping strategy will also rely on CPFP.
738738
malleability: PackageMalleability,
739-
// Block height at which our counterparty can potentially claim this output as well (assuming
740-
// they have the keys or information required to do so).
741-
// For HTLCs we're claiming with a preimage and revoked outputs, we need to get our spend
742-
// on-chain before this height.
739+
/// Block height at which our counterparty can potentially claim this output as well (assuming
740+
/// they have the keys or information required to do so).
741+
///
742+
/// This is used primarily by external consumers to decide when an output becomes "pinnable"
743+
/// because the counterparty can potentially spend it. It is also used internally by
744+
/// [`Self::get_height_timer`] to identify when an output must be claimed by, depending on the
745+
/// type of output.
743746
counterparty_spendable_height: u32,
744747
// Determines if this package can be aggregated.
745748
// Timelocked outputs belonging to the same transaction might have differing

0 commit comments

Comments
 (0)