lnwire: define new feature bits for commitment's with tweakless remote outputs

This commit is contained in:
Olaoluwa Osuntokun 2019-07-31 19:57:52 -07:00
parent c57bb9d86b
commit a9541b8f6a
No known key found for this signature in database
GPG Key ID: BC13F65E2DC84465

@ -55,6 +55,16 @@ const (
// packet.
TLVOnionPayloadOptional FeatureBit = 9
// StaticRemoteKeyRequired is a required feature bit that signals that
// within one's commitment transaction, the key used for the remote
// party's non-delay output should not be tweaked.
StaticRemoteKeyRequired FeatureBit = 10
// StaticRemoteKeyOptional is an optional feature bit that signals that
// within one's commitment transaction, the key used for the remote
// party's non-delay output should not be tweaked.
StaticRemoteKeyOptional FeatureBit = 11
// maxAllowedSize is a maximum allowed size of feature vector.
//
// NOTE: Within the protocol, the maximum allowed message size is 65535
@ -88,6 +98,8 @@ var LocalFeatures = map[FeatureBit]string{
var GlobalFeatures = map[FeatureBit]string{
TLVOnionPayloadRequired: "tlv-onion",
TLVOnionPayloadOptional: "tlv-onion",
StaticRemoteKeyOptional: "static-remote-key",
StaticRemoteKeyRequired: "static-remote-key",
}
// RawFeatureVector represents a set of feature bits as defined in BOLT-09. A