Fetch our `InitFeatures` from `ChannelMessageHandler`
authorMatt Corallo <git@bluematt.me>
Wed, 7 Sep 2022 17:51:16 +0000 (17:51 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 9 Sep 2022 15:36:46 +0000 (15:36 +0000)
commit950ccc434046adb8527c9d3c066da482219b924a
tree089e5f80ef19abe7e4483d0da5a4de91b2d164ca
parentba695368431c4095fcceb9e917a3c984a70674f0
Fetch our `InitFeatures` from `ChannelMessageHandler`

Like we now do for `NodeFeatures`, this converts to asking our
registered `ChannelMessageHandler` for our `InitFeatures` instead
of hard-coding them to the global LDK known set.

This allows handlers to set different feature bits based on what
our configuration actually supports rather than what LDK supports
in aggregate.
lightning-net-tokio/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/test_utils.rs