Skip to content

Commit

Permalink
lnwire: add feature bits for simple taproot chans [temp]
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Jan 17, 2023
1 parent a6a5042 commit eec8e5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lnwire/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ const (
// TODO: Decide on actual feature bit value.
ScriptEnforcedLeaseOptional FeatureBit = 2023

// SimpleTaprootChannelsRequred is an required bit that indicates the
// node is able to create unadvertised taproot-native channels.
SimpleTaprootChannelsRequired = 80

// SimpleTaprootChannelsOptional is an optional bit that indicates the
// node is able to create unadvertised taproot-native channels.
SimpleTaprootChannelsOptional = 81

// maxAllowedSize is a maximum allowed size of feature vector.
//
// NOTE: Within the protocol, the maximum allowed message size is 65535
Expand Down Expand Up @@ -280,6 +288,8 @@ var Features = map[FeatureBit]string{
ZeroConfOptional: "zero-conf",
ShutdownAnySegwitRequired: "shutdown-any-segwit",
ShutdownAnySegwitOptional: "shutdown-any-segwit",
SimpleTaprootChannelsRequired: "simple-taproot-chans",
SimpleTaprootChannelsOptional: "simple-taproot-chans",
}

// RawFeatureVector represents a set of feature bits as defined in BOLT-09. A
Expand Down

0 comments on commit eec8e5f

Please sign in to comment.