Skip to content

Commit

Permalink
lnwire: switch chan_type feature to bits 44/45
Browse files Browse the repository at this point in the history
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 lightning/bolts#906
  • Loading branch information
Roasbeef committed Oct 20, 2021
1 parent e590abc commit 028fc86
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lnwire/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,15 @@ const (
// negotiation methods. With this bit, there is no longer a "default"
// implicit channel commitment type, allowing a connection to
// open/maintain types of several channels over its lifetime.
//
// TODO: Decide on actual feature bit value.
ExplicitChannelTypeRequired = 2020
ExplicitChannelTypeRequired = 44

// ExplicitChannelTypeOptional is an optional bit that denotes that a
// connection established with this node is to use explicit channel
// commitment types for negotiation instead of the existing implicit
// negotiation methods. With this bit, there is no longer a "default"
// implicit channel commitment type, allowing a connection to
// open/maintain types of several channels over its lifetime.
//
// TODO: Decide on actual feature bit value.
ExplicitChannelTypeOptional = 2021
ExplicitChannelTypeOptional = 45

// maxAllowedSize is a maximum allowed size of feature vector.
//
Expand Down

0 comments on commit 028fc86

Please sign in to comment.