lnwire: add feature bits for simple taproot chans

This commit is contained in:
Olaoluwa Osuntokun 2023-01-16 19:45:11 -08:00
parent e49f6fcdd3
commit eccc77315b
No known key found for this signature in database
GPG key ID: 3BBD59E99B280306

View file

@ -231,6 +231,14 @@ const (
// TODO: Decide on actual feature bit value.
ScriptEnforcedLeaseOptional FeatureBit = 2023
// SimpleTaprootChannelsRequred is a required bit that indicates the
// node is able to create taproot-native channels.
SimpleTaprootChannelsRequired = 80
// SimpleTaprootChannelsOptional is an optional bit that indicates the
// node is able to create taproot-native channels.
SimpleTaprootChannelsOptional = 81
// MaxBolt11Feature is the maximum feature bit value allowed in bolt 11
// invoices.
//
@ -291,6 +299,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