lnwire: switch chan_type feature to bits 44/45

We were using an older feature bit that was just "selected". This commit
has us use the feature bit officially included in the spec.

See https://github.com/lightningnetwork/lightning-rfc/pull/906
This commit is contained in:
Olaoluwa Osuntokun 2021-10-19 17:39:57 -07:00
parent e590abc7be
commit 028fc86e5c
No known key found for this signature in database
GPG key ID: 3BBD59E99B280306

View file

@ -145,19 +145,15 @@ const (
// negotiation methods. With this bit, there is no longer a "default" // negotiation methods. With this bit, there is no longer a "default"
// implicit channel commitment type, allowing a connection to // implicit channel commitment type, allowing a connection to
// open/maintain types of several channels over its lifetime. // open/maintain types of several channels over its lifetime.
// ExplicitChannelTypeRequired = 44
// TODO: Decide on actual feature bit value.
ExplicitChannelTypeRequired = 2020
// ExplicitChannelTypeOptional is an optional bit that denotes that a // ExplicitChannelTypeOptional is an optional bit that denotes that a
// connection established with this node is to use explicit channel // connection established with this node is to use explicit channel
// commitment types for negotiation instead of the existing implicit // commitment types for negotiation instead of the existing implicit
// negotiation methods. With this bit, there is no longer a "default" // negotiation methods. With this bit, there is no longer a "default"
// implicit channel commitment type, allowing a connection to // implicit channel commitment type, allowing a connection to
// open/maintain types of several channels over its lifetime.
//
// TODO: Decide on actual feature bit value. // TODO: Decide on actual feature bit value.
ExplicitChannelTypeOptional = 2021 ExplicitChannelTypeOptional = 45
// maxAllowedSize is a maximum allowed size of feature vector. // maxAllowedSize is a maximum allowed size of feature vector.
// //