2018-10-24 04:28:20 +03:00
|
|
|
package wtwire
|
|
|
|
|
|
|
|
import "github.com/lightningnetwork/lnd/lnwire"
|
|
|
|
|
2019-02-09 07:02:05 +03:00
|
|
|
// FeatureNames holds a mapping from each feature bit understood by this
|
|
|
|
// implementation to its common name.
|
|
|
|
var FeatureNames = map[lnwire.FeatureBit]string{
|
2019-06-14 03:34:16 +03:00
|
|
|
AltruistSessionsRequired: "altruist-sessions",
|
|
|
|
AltruistSessionsOptional: "altruist-sessions",
|
2020-11-26 02:03:49 +03:00
|
|
|
AnchorCommitRequired: "anchor-commit",
|
|
|
|
AnchorCommitOptional: "anchor-commit",
|
2018-10-24 04:28:20 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
2019-06-14 03:34:16 +03:00
|
|
|
// AltruistSessionsRequired specifies that the advertising node requires
|
|
|
|
// the remote party to understand the protocol for creating and updating
|
2018-10-24 04:28:20 +03:00
|
|
|
// watchtower sessions.
|
2019-06-14 03:34:16 +03:00
|
|
|
AltruistSessionsRequired lnwire.FeatureBit = 0
|
2018-10-24 04:28:20 +03:00
|
|
|
|
2019-06-14 03:34:16 +03:00
|
|
|
// AltruistSessionsOptional specifies that the advertising node can
|
|
|
|
// support a remote party who understand the protocol for creating and
|
|
|
|
// updating watchtower sessions.
|
|
|
|
AltruistSessionsOptional lnwire.FeatureBit = 1
|
2020-11-26 02:03:49 +03:00
|
|
|
|
|
|
|
// AnchorCommitRequired specifies that the advertising tower requires
|
|
|
|
// the remote party to negotiate sessions for protecting anchor
|
|
|
|
// channels.
|
|
|
|
AnchorCommitRequired lnwire.FeatureBit = 2
|
|
|
|
|
|
|
|
// AnchorCommitOptional specifies that the advertising tower allows the
|
|
|
|
// remote party to negotiate sessions for protecting anchor channels.
|
|
|
|
AnchorCommitOptional lnwire.FeatureBit = 3
|
2018-10-24 04:28:20 +03:00
|
|
|
)
|