]> git.bitcoin.ninja Git - rust-lightning/commit
Rename `PackageTemplate::timelock` `counteraprty_spendable_height`
authorMatt Corallo <git@bluematt.me>
Fri, 6 Sep 2024 00:25:00 +0000 (00:25 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 16 Oct 2024 21:04:48 +0000 (21:04 +0000)
commita19edbc32dcbadd1d50d963238f343fa1a2e2355
tree1a2df1dda48733c7c1739b45d7be79c79b3bc8c6
parent2f549eeb80b497492fd4914d8ae7d41ebb2060f6
Rename `PackageTemplate::timelock` `counteraprty_spendable_height`

This function was very confusing - its used to determine by when
we have to stop aggregating this claim with others as it starts to
be at risk of pinning due to the counterparty's ability to spend
the output.

It is not ever used as a timelock for a transaction, and thus its
name is very confusing.

Instead we rename it `counterparty_spendable_height`.
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs