]> git.bitcoin.ninja Git - rust-lightning/commit
Store anchors option for supported output types
authorWilmer Paulino <wilmer.paulino@gmail.com>
Wed, 14 Sep 2022 19:35:26 +0000 (12:35 -0700)
committerWilmer Paulino <wilmer.paulino@gmail.com>
Tue, 18 Oct 2022 19:22:28 +0000 (12:22 -0700)
commit519ec902aa62aaa83eb5c6a513f63bc7035a8c61
tree4c61796b9e34fb409a596a4fad1c0311e5703ad1
parente61f3a238a70cbac87209e223b7c396108a49b97
Store anchors option for supported output types

As we integrate the support of anchor outputs, we'll want to know if
each input we're working with came from an anchor outputs channel.
Instead of threading through a `opt_anchors` boolean across several
methods on `PackageSolvingData` and `PackageTemplate`, we decide to
store a reference in each `PackageSolvingData` variant instead that
features a change in behavior between channels with and without anchor
outputs.
lightning/src/chain/channelmonitor.rs
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs