]> 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>
Fri, 6 Sep 2024 00:56:53 +0000 (00:56 +0000)
commit48cb082d9ef33d5a6b2373a9993cd7b5722426fb
tree92f9fc268298a784e1f146ec19d389ffdee9d1f6
parent48a17c23047897b41f429a35c13e47d7fc1c1948
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