mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-05 04:54:59 +02:00
lnwire: add feature bits for new rbf coop close
This commit is contained in:
@ -233,6 +233,22 @@ const (
|
|||||||
// able and willing to accept keysend payments.
|
// able and willing to accept keysend payments.
|
||||||
KeysendOptional = 55
|
KeysendOptional = 55
|
||||||
|
|
||||||
|
// RbfCoopCloseRequired is a required feature bit that signals that
|
||||||
|
// the new RBF-based co-op close protocol is supported.
|
||||||
|
RbfCoopCloseRequired = 60
|
||||||
|
|
||||||
|
// RbfCoopCloseOptional is an optional feature bit that signals that the
|
||||||
|
// new RBF-based co-op close protocol is supported.
|
||||||
|
RbfCoopCloseOptional = 61
|
||||||
|
|
||||||
|
// RbfCoopCloseRequiredStaging is a required feature bit that signals
|
||||||
|
// that the new RBF-based co-op close protocol is supported.
|
||||||
|
RbfCoopCloseRequiredStaging = 160
|
||||||
|
|
||||||
|
// RbfCoopCloseOptionalStaging is an optional feature bit that signals
|
||||||
|
// that the new RBF-based co-op close protocol is supported.
|
||||||
|
RbfCoopCloseOptionalStaging = 161
|
||||||
|
|
||||||
// ScriptEnforcedLeaseRequired is a required feature bit that signals
|
// ScriptEnforcedLeaseRequired is a required feature bit that signals
|
||||||
// that the node requires channels having zero-fee second-level HTLC
|
// that the node requires channels having zero-fee second-level HTLC
|
||||||
// transactions, which also imply anchor commitments, along with an
|
// transactions, which also imply anchor commitments, along with an
|
||||||
@ -373,6 +389,10 @@ var Features = map[FeatureBit]string{
|
|||||||
ExperimentalEndorsementOptional: "endorsement-x",
|
ExperimentalEndorsementOptional: "endorsement-x",
|
||||||
Bolt11BlindedPathsOptional: "bolt-11-blinded-paths",
|
Bolt11BlindedPathsOptional: "bolt-11-blinded-paths",
|
||||||
Bolt11BlindedPathsRequired: "bolt-11-blinded-paths",
|
Bolt11BlindedPathsRequired: "bolt-11-blinded-paths",
|
||||||
|
RbfCoopCloseOptional: "rbf-coop-close",
|
||||||
|
RbfCoopCloseRequired: "rbf-coop-close",
|
||||||
|
RbfCoopCloseOptionalStaging: "rbf-coop-close-x",
|
||||||
|
RbfCoopCloseRequiredStaging: "rbf-coop-close-x",
|
||||||
}
|
}
|
||||||
|
|
||||||
// RawFeatureVector represents a set of feature bits as defined in BOLT-09. A
|
// RawFeatureVector represents a set of feature bits as defined in BOLT-09. A
|
||||||
|
Reference in New Issue
Block a user