lnwire+feature: define AnchorsZeroFeeHtlcTx feature
This commit is contained in:
parent
f8dda6f0ee
commit
abefa93065
@ -43,7 +43,7 @@ var defaultSetDesc = setDesc{
|
|||||||
SetNodeAnn: {}, // N
|
SetNodeAnn: {}, // N
|
||||||
SetInvoice: {}, // 9
|
SetInvoice: {}, // 9
|
||||||
},
|
},
|
||||||
lnwire.AnchorsOptional: {
|
lnwire.AnchorsZeroFeeHtlcTxOptional: {
|
||||||
SetInit: {}, // I
|
SetInit: {}, // I
|
||||||
SetNodeAnn: {}, // N
|
SetNodeAnn: {}, // N
|
||||||
},
|
},
|
||||||
|
@ -83,8 +83,8 @@ func newManager(cfg Config, desc setDesc) (*Manager, error) {
|
|||||||
raw.Unset(lnwire.StaticRemoteKeyRequired)
|
raw.Unset(lnwire.StaticRemoteKeyRequired)
|
||||||
}
|
}
|
||||||
if cfg.NoAnchors {
|
if cfg.NoAnchors {
|
||||||
raw.Unset(lnwire.AnchorsOptional)
|
raw.Unset(lnwire.AnchorsZeroFeeHtlcTxOptional)
|
||||||
raw.Unset(lnwire.AnchorsRequired)
|
raw.Unset(lnwire.AnchorsZeroFeeHtlcTxRequired)
|
||||||
}
|
}
|
||||||
if cfg.NoWumbo {
|
if cfg.NoWumbo {
|
||||||
raw.Unset(lnwire.WumboChannelsOptional)
|
raw.Unset(lnwire.WumboChannelsOptional)
|
||||||
|
@ -119,6 +119,16 @@ const (
|
|||||||
// outputs.
|
// outputs.
|
||||||
AnchorsOptional FeatureBit = 21
|
AnchorsOptional FeatureBit = 21
|
||||||
|
|
||||||
|
// AnchorsZeroFeeHtlcTxRequired is a required feature bit that signals
|
||||||
|
// that the node requires channels having zero-fee second-level HTLC
|
||||||
|
// transactions, which also imply anchor commitments.
|
||||||
|
AnchorsZeroFeeHtlcTxRequired FeatureBit = 22
|
||||||
|
|
||||||
|
// AnchorsZeroFeeHtlcTxRequired is an optional feature bit that signals
|
||||||
|
// that the node supports channels having zero-fee second-level HTLC
|
||||||
|
// transactions, which also imply anchor commitments.
|
||||||
|
AnchorsZeroFeeHtlcTxOptional FeatureBit = 23
|
||||||
|
|
||||||
// maxAllowedSize is a maximum allowed size of feature vector.
|
// maxAllowedSize is a maximum allowed size of feature vector.
|
||||||
//
|
//
|
||||||
// NOTE: Within the protocol, the maximum allowed message size is 65535
|
// NOTE: Within the protocol, the maximum allowed message size is 65535
|
||||||
@ -158,6 +168,8 @@ var Features = map[FeatureBit]string{
|
|||||||
MPPRequired: "multi-path-payments",
|
MPPRequired: "multi-path-payments",
|
||||||
AnchorsRequired: "anchor-commitments",
|
AnchorsRequired: "anchor-commitments",
|
||||||
AnchorsOptional: "anchor-commitments",
|
AnchorsOptional: "anchor-commitments",
|
||||||
|
AnchorsZeroFeeHtlcTxRequired: "anchors-zero-fee-htlc-tx",
|
||||||
|
AnchorsZeroFeeHtlcTxOptional: "anchors-zero-fee-htlc-tx",
|
||||||
WumboChannelsRequired: "wumbo-channels",
|
WumboChannelsRequired: "wumbo-channels",
|
||||||
WumboChannelsOptional: "wumbo-channels",
|
WumboChannelsOptional: "wumbo-channels",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user