feature: use +100 staging bit for taproot channels

In this commit, we carry out a new notion introduced during a recent
spec meeting to use a feature bit plus 100 before the feature has been
finalized in the spec.

We split into the Final and Staging bits.
This commit is contained in:
Olaoluwa Osuntokun committed 2023-08-22 16:34:28 -07:00
1 parent fcbf6f2483
commit 384b1b1c12
9 files changed
+92 -76

No files matched your search

+3 -1
View File
@@ -4077,7 +4077,9 @@ func (f *Manager) newChanAnnouncement(localPubKey,
log.Debugf("Applying taproot feature bit to "+
"ChannelAnnouncement for %v", chanID)
chanAnn.Features.Set(lnwire.SimpleTaprootChannelsRequired)
chanAnn.Features.Set(
lnwire.SimpleTaprootChannelsRequiredStaging,
)
}
// The chanFlags field indicates which directed edge of the channel is