From eccc77315b563c6c4276bed3df5923c927a29084 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 16 Jan 2023 19:45:11 -0800 Subject: [PATCH] lnwire: add feature bits for simple taproot chans --- lnwire/features.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lnwire/features.go b/lnwire/features.go index dd0abc392..2383bb6ae 100644 --- a/lnwire/features.go +++ b/lnwire/features.go @@ -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