]> git.bitcoin.ninja Git - rust-lightning/commit
Add anchor output when we have HTLCs or a to_local output
authorMatt Corallo <git@bluematt.me>
Tue, 24 Mar 2020 00:20:37 +0000 (20:20 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 25 May 2020 19:36:59 +0000 (15:36 -0400)
commit8b6434e946cc559a4c87349fecb97609c913682d
tree56d47a0beb348f7859b60d7d0675d2369856bfe5
parentda562322e5baf4b45307fbadf2c8372e3b412107
Add anchor output when we have HTLCs or a to_local output

This is the first step in implementing anchor outputs - namely
adding the anchor outputs themselves. We don't ever spend them,
and this commit doesn't update other commitent transaction scripts
with the new CSV timelocks.

This commit temporarily disables the
ln::channel::tests::outbound_commitment_test test, as we don't have
test vectors for anchor-outputs-without-updated-scripts upstream.
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/reorg_tests.rs