mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
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:
parent
e590abc7be
commit
028fc86e5c
1 changed files with 2 additions and 6 deletions
|
@ -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.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue