2018-10-23 18:28:20 -07:00
|
|
|
package wtwire
|
|
|
|
|
|
|
|
import "github.com/lightningnetwork/lnd/lnwire"
|
|
|
|
|
2019-02-08 20:02:05 -08:00
|
|
|
// FeatureNames holds a mapping from each feature bit understood by this
|
|
|
|
// implementation to its common name.
|
|
|
|
var FeatureNames = map[lnwire.FeatureBit]string{
|
2019-02-06 19:23:04 -08:00
|
|
|
WtSessionsRequired: "wt-sessions",
|
|
|
|
WtSessionsOptional: "wt-sessions",
|
2018-10-23 18:28:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
|
|
|
// WtSessionsRequired specifies that the advertising node requires the
|
|
|
|
// remote party to understand the protocol for creating and updating
|
|
|
|
// watchtower sessions.
|
|
|
|
WtSessionsRequired lnwire.FeatureBit = 8
|
|
|
|
|
|
|
|
// WtSessionsOptional specifies that the advertising node can support
|
|
|
|
// a remote party who understand the protocol for creating and updating
|
|
|
|
// watchtower sessions.
|
|
|
|
WtSessionsOptional lnwire.FeatureBit = 9
|
|
|
|
)
|