rust-lightning/lightning/src/ln
Matt Corallo 8f4a22fe31 Support the channel_type feature bit.
Note that this feature bit does absolutely nothing. We signal it
(as we already support channel type negotiation), but do not bother
to look to see if peers support it, as we don't care - we simply
look for the TLV entry and deduce if a peer supports channel type
negotiation from that.

The only behavioral change at all here is that we don't barf if a
peer sets channel type negotiation to required via the feature bit
(instead of failing the channel at open-time), but of course no
implementations do this, and likely won't for some time (if ever -
you can simply fail channels with unknown types later, and there's
no reason to refuse connections, really).

As defined in https://github.com/lightning/bolts/pull/906
2021-12-07 18:05:29 +00:00
..
chan_utils.rs Implement Clone, Hash, PartialEq for ClosingTransaction 2021-11-29 01:30:44 +00:00
chanmon_update_fail_tests.rs Generate PaymentPathSuccessful event for each path 2021-11-23 13:29:45 -06:00
channel.rs Explicitly support counterparty setting 0 channel reserve 2021-11-29 16:57:21 +00:00
channelmanager.rs Explicitly support counterparty setting 0 channel reserve 2021-11-29 16:57:21 +00:00
features.rs Support the channel_type feature bit. 2021-12-07 18:05:29 +00:00
functional_test_utils.rs Explicitly support counterparty setting 0 channel reserve 2021-11-29 16:57:21 +00:00
functional_tests.rs Explicitly support counterparty setting 0 channel reserve 2021-11-29 16:57:21 +00:00
mod.rs Automatically close channels that go unfunded for 2016 blocks 2021-11-16 21:44:35 +00:00
monitor_tests.rs Generate PaymentPathSuccessful event for each path 2021-11-23 13:29:45 -06:00
msgs.rs Support de/ser of the new channel_type field in open_channel 2021-10-22 19:34:18 +00:00
onion_route_tests.rs Generate PaymentPathSuccessful event for each path 2021-11-23 13:29:45 -06:00
onion_utils.rs Copy Payee into Routes to provide them to ChannelManager 2021-10-25 17:58:18 +00:00
payment_tests.rs Generate PaymentPathSuccessful event for each path 2021-11-23 13:29:45 -06:00
peer_channel_encryptor.rs Drop byte_utils in favor of native to/from_be_bytes methods 2021-06-01 15:47:01 +00:00
peer_handler.rs Add a new log-level for gossip messages. 2021-11-22 18:19:08 +01:00
reorg_tests.rs Return ClosureReason from Channel chain update methods 2021-11-16 21:44:35 +00:00
script.rs Implement Clone for InvalidShutdownScript 2021-11-29 01:30:50 +00:00
shutdown_tests.rs Generate PaymentPathSuccessful event for each path 2021-11-23 13:29:45 -06:00
wire.rs Use Infallible for the unconstructable default custom message type 2021-09-22 22:01:40 +00:00