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 authored and matheusd committed Feb 12, 2024
1 parent 4ccd75b commit 5a5eb9d
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

// ScriptEnforcedLeaseOptional is an optional feature bit that signals
// that the node requires channels having zero-fee second-level HTLC
Expand Down

0 comments on commit 5a5eb9d

Please sign in to comment.