multi: add custom feature bits to config options

This commit is contained in:
Carla Kirk-Cohen committed 2023-05-04 10:35:48 -04:00
1 parent 4e98f4da5e
commit 4e36e2fd2b
4 files changed
+66

No files matched your search

+10
View File
@@ -3,6 +3,11 @@
package lncfg
import (
"github.com/lightningnetwork/lnd/feature"
"github.com/lightningnetwork/lnd/lnwire"
)
// ExperimentalProtocol is a sub-config that houses any experimental protocol
// features that also require a build-tag to activate.
type ExperimentalProtocol struct {
@@ -13,3 +18,8 @@ type ExperimentalProtocol struct {
func (p ExperimentalProtocol) CustomMessageOverrides() []uint16 {
return nil
}
// CustomFeatures returns a custom set of feature bits to advertise.
func (p ExperimentalProtocol) CustomFeatures() map[feature.Set][]lnwire.FeatureBit {
return map[feature.Set][]lnwire.FeatureBit{}
}