]> git.bitcoin.ninja Git - rust-lightning/commit
Add anchor outputs pair in CommitmentTransaction
authorDevrandom <c1.devrandom@niftybox.net>
Sun, 22 Aug 2021 09:08:28 +0000 (11:08 +0200)
committerDevrandom <c1.devrandom@niftybox.net>
Thu, 2 Sep 2021 07:13:46 +0000 (09:13 +0200)
commit8275698f3a23256cf0d9760728e9fcd8c2bed399
treed890569a94c0acd42069b88be1ef34e475e3a3b8
parent97c29cfd34a93e585dde3cd3efc6d6185b54fdc7
Add anchor outputs pair in CommitmentTransaction

The anchor ouputs pair is added if there are pending HTLCs. Or a
a per-party anchor is added if the party has a pending balance.
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/ser.rs