]> git.bitcoin.ninja Git - rust-lightning/commit
Re-work PackageSolvingData::absolute_tx_timelock
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Tue, 28 Mar 2023 19:03:19 +0000 (12:03 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Tue, 28 Mar 2023 19:15:54 +0000 (12:15 -0700)
commit2ac09711d3e2c329d96e0bd60938ba83ff382b37
tree7e5646cfdf34a2e92413213bcb163d399a95f983
parent31e78ff258195837abafa045c12c036528696d7f
Re-work PackageSolvingData::absolute_tx_timelock

Previously, this would return the earliest height the output could be
confirmed, which seems to no longer be useful. The only use of the
method was to determine whether we should delay a package to a future
block. Instead, we choose to return the absolute locktime the
transaction spending the output should have, which better corresponds to
the method name and still supports the delay functionality mentioned.

Doing so also allows us to expose the locktime required for HTLC
transactions we need to broadcast based on our own commitments for
anchor channels.
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs