2018-10-24 03:28:20 +02:00
|
|
|
package wtwire
|
|
|
|
|
|
|
|
import "github.com/lightningnetwork/lnd/lnwire"
|
|
|
|
|
2019-02-09 05:02:05 +01: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 02:34:16 +02:00
|
|
|
AltruistSessionsRequired: "altruist-sessions",
|
|
|
|
AltruistSessionsOptional: "altruist-sessions",
|
2020-11-26 00:03:49 +01:00
|
|
|
AnchorCommitRequired: "anchor-commit",
|
|
|
|
AnchorCommitOptional: "anchor-commit",
|
2023-05-19 11:18:22 +02:00
|
|
|
TaprootCommitRequired: "taproot-commit",
|
|
|
|
TaprootCommitOptional: "taproot-commit",
|
2018-10-24 03:28:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
2019-06-14 02:34:16 +02:00
|
|
|
// AltruistSessionsRequired specifies that the advertising node requires
|
|
|
|
// the remote party to understand the protocol for creating and updating
|
2018-10-24 03:28:20 +02:00
|
|
|
// watchtower sessions.
|
2019-06-14 02:34:16 +02:00
|
|
|
AltruistSessionsRequired lnwire.FeatureBit = 0
|
2018-10-24 03:28:20 +02:00
|
|
|
|
2019-06-14 02:34:16 +02: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 00:03:49 +01: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
|
2023-05-19 11:18:22 +02:00
|
|
|
|
|
|
|
// TaprootCommitRequired specifies that the advertising tower requires
|
|
|
|
// the remote party to negotiate sessions for protecting taproot
|
|
|
|
// channels.
|
|
|
|
TaprootCommitRequired lnwire.FeatureBit = 4
|
|
|
|
|
|
|
|
// TaprootCommitOptional specifies that the advertising tower allows the
|
|
|
|
// remote party to negotiate sessions for protecting taproot channels.
|
|
|
|
TaprootCommitOptional lnwire.FeatureBit = 5
|
2018-10-24 03:28:20 +02:00
|
|
|
)
|