github.com/decred/dcrlnd@v0.7.6/watchtower/wtwire/features.go (about) 1 package wtwire 2 3 import "github.com/decred/dcrlnd/lnwire" 4 5 // FeatureNames holds a mapping from each feature bit understood by this 6 // implementation to its common name. 7 var FeatureNames = map[lnwire.FeatureBit]string{ 8 AltruistSessionsRequired: "altruist-sessions", 9 AltruistSessionsOptional: "altruist-sessions", 10 AnchorCommitRequired: "anchor-commit", 11 AnchorCommitOptional: "anchor-commit", 12 } 13 14 const ( 15 // AltruistSessionsRequired specifies that the advertising node requires 16 // the remote party to understand the protocol for creating and updating 17 // watchtower sessions. 18 AltruistSessionsRequired lnwire.FeatureBit = 0 19 20 // AltruistSessionsOptional specifies that the advertising node can 21 // support a remote party who understand the protocol for creating and 22 // updating watchtower sessions. 23 AltruistSessionsOptional lnwire.FeatureBit = 1 24 25 // AnchorCommitRequired specifies that the advertising tower requires 26 // the remote party to negotiate sessions for protecting anchor 27 // channels. 28 AnchorCommitRequired lnwire.FeatureBit = 2 29 30 // AnchorCommitOptional specifies that the advertising tower allows the 31 // remote party to negotiate sessions for protecting anchor channels. 32 AnchorCommitOptional lnwire.FeatureBit = 3 33 )