mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
20a107600f
This commit adds a new FlagTaprootChannel Flag which is then used to construct a new blob Type: TypeAltruistTaprootCommit. New watchtower feature bits are also added (4/5).
45 lines
1.7 KiB
Go
45 lines
1.7 KiB
Go
package wtwire
|
|
|
|
import "github.com/lightningnetwork/lnd/lnwire"
|
|
|
|
// FeatureNames holds a mapping from each feature bit understood by this
|
|
// implementation to its common name.
|
|
var FeatureNames = map[lnwire.FeatureBit]string{
|
|
AltruistSessionsRequired: "altruist-sessions",
|
|
AltruistSessionsOptional: "altruist-sessions",
|
|
AnchorCommitRequired: "anchor-commit",
|
|
AnchorCommitOptional: "anchor-commit",
|
|
TaprootCommitRequired: "taproot-commit",
|
|
TaprootCommitOptional: "taproot-commit",
|
|
}
|
|
|
|
const (
|
|
// AltruistSessionsRequired specifies that the advertising node requires
|
|
// the remote party to understand the protocol for creating and updating
|
|
// watchtower sessions.
|
|
AltruistSessionsRequired lnwire.FeatureBit = 0
|
|
|
|
// 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
|
|
|
|
// 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
|
|
|
|
// 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
|
|
)
|