Fix typos
This commit is contained in:
parent
ad0a89b844
commit
a908a74acb
@ -82,7 +82,7 @@ func validateDeps(features featureSet, supported supportedFeatures) error {
|
|||||||
return NewErrMissingFeatureDep(bit)
|
return NewErrMissingFeatureDep(bit)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Alternatively, if we know that this depdendency is valid, we
|
// Alternatively, if we know that this dependency is valid, we
|
||||||
// can short circuit and continue verifying other bits.
|
// can short circuit and continue verifying other bits.
|
||||||
if checked {
|
if checked {
|
||||||
continue
|
continue
|
||||||
|
@ -260,7 +260,7 @@ type SendPaymentRequest struct {
|
|||||||
AllowSelfPayment bool `protobuf:"varint,15,opt,name=allow_self_payment,json=allowSelfPayment,proto3" json:"allow_self_payment,omitempty"`
|
AllowSelfPayment bool `protobuf:"varint,15,opt,name=allow_self_payment,json=allowSelfPayment,proto3" json:"allow_self_payment,omitempty"`
|
||||||
//*
|
//*
|
||||||
//Features assumed to be supported by the final node. All transitive feature
|
//Features assumed to be supported by the final node. All transitive feature
|
||||||
//depdencies must also be set properly. For a given feature bit pair, either
|
//dependencies must also be set properly. For a given feature bit pair, either
|
||||||
//optional or remote may be set, but not both. If this field is nil or empty,
|
//optional or remote may be set, but not both. If this field is nil or empty,
|
||||||
//the router will try to load destination features from the graph as a
|
//the router will try to load destination features from the graph as a
|
||||||
//fallback.
|
//fallback.
|
||||||
|
@ -108,7 +108,7 @@ message SendPaymentRequest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Features assumed to be supported by the final node. All transitive feature
|
Features assumed to be supported by the final node. All transitive feature
|
||||||
depdencies must also be set properly. For a given feature bit pair, either
|
dependencies must also be set properly. For a given feature bit pair, either
|
||||||
optional or remote may be set, but not both. If this field is nil or empty,
|
optional or remote may be set, but not both. If this field is nil or empty,
|
||||||
the router will try to load destination features from the graph as a
|
the router will try to load destination features from the graph as a
|
||||||
fallback.
|
fallback.
|
||||||
|
@ -749,7 +749,7 @@ func unmarshallHopHint(rpcHint *lnrpc.HopHint) (zpay32.HopHint, error) {
|
|||||||
|
|
||||||
// UnmarshalFeatures converts a list of uint32's into a valid feature vector.
|
// UnmarshalFeatures converts a list of uint32's into a valid feature vector.
|
||||||
// This method checks that feature bit pairs aren't assigned toegether, and
|
// This method checks that feature bit pairs aren't assigned toegether, and
|
||||||
// validates transitive depdencies.
|
// validates transitive dependencies.
|
||||||
func UnmarshalFeatures(
|
func UnmarshalFeatures(
|
||||||
rpcFeatures []lnrpc.FeatureBit) (*lnwire.FeatureVector, error) {
|
rpcFeatures []lnrpc.FeatureBit) (*lnwire.FeatureVector, error) {
|
||||||
|
|
||||||
|
@ -1228,7 +1228,7 @@ type SendRequest struct {
|
|||||||
AllowSelfPayment bool `protobuf:"varint,14,opt,name=allow_self_payment,json=allowSelfPayment,proto3" json:"allow_self_payment,omitempty"`
|
AllowSelfPayment bool `protobuf:"varint,14,opt,name=allow_self_payment,json=allowSelfPayment,proto3" json:"allow_self_payment,omitempty"`
|
||||||
//*
|
//*
|
||||||
//Features assumed to be supported by the final node. All transitive feature
|
//Features assumed to be supported by the final node. All transitive feature
|
||||||
//depdencies must also be set properly. For a given feature bit pair, either
|
//dependencies must also be set properly. For a given feature bit pair, either
|
||||||
//optional or remote may be set, but not both. If this field is nil or empty,
|
//optional or remote may be set, but not both. If this field is nil or empty,
|
||||||
//the router will try to load destination features from the graph as a
|
//the router will try to load destination features from the graph as a
|
||||||
//fallback.
|
//fallback.
|
||||||
@ -5915,7 +5915,7 @@ type QueryRoutesRequest struct {
|
|||||||
RouteHints []*RouteHint `protobuf:"bytes,16,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
|
RouteHints []*RouteHint `protobuf:"bytes,16,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
|
||||||
//*
|
//*
|
||||||
//Features assumed to be supported by the final node. All transitive feature
|
//Features assumed to be supported by the final node. All transitive feature
|
||||||
//depdencies must also be set properly. For a given feature bit pair, either
|
//dependencies must also be set properly. For a given feature bit pair, either
|
||||||
//optional or remote may be set, but not both. If this field is nil or empty,
|
//optional or remote may be set, but not both. If this field is nil or empty,
|
||||||
//the router will try to load destination features from the graph as a
|
//the router will try to load destination features from the graph as a
|
||||||
//fallback.
|
//fallback.
|
||||||
|
@ -985,7 +985,7 @@ message SendRequest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Features assumed to be supported by the final node. All transitive feature
|
Features assumed to be supported by the final node. All transitive feature
|
||||||
depdencies must also be set properly. For a given feature bit pair, either
|
dependencies must also be set properly. For a given feature bit pair, either
|
||||||
optional or remote may be set, but not both. If this field is nil or empty,
|
optional or remote may be set, but not both. If this field is nil or empty,
|
||||||
the router will try to load destination features from the graph as a
|
the router will try to load destination features from the graph as a
|
||||||
fallback.
|
fallback.
|
||||||
@ -2065,7 +2065,7 @@ message QueryRoutesRequest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Features assumed to be supported by the final node. All transitive feature
|
Features assumed to be supported by the final node. All transitive feature
|
||||||
depdencies must also be set properly. For a given feature bit pair, either
|
dependencies must also be set properly. For a given feature bit pair, either
|
||||||
optional or remote may be set, but not both. If this field is nil or empty,
|
optional or remote may be set, but not both. If this field is nil or empty,
|
||||||
the router will try to load destination features from the graph as a
|
the router will try to load destination features from the graph as a
|
||||||
fallback.
|
fallback.
|
||||||
|
@ -831,7 +831,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "dest_features",
|
"name": "dest_features",
|
||||||
"description": "*\nFeatures assumed to be supported by the final node. All transitive feature\ndepdencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback.",
|
"description": "*\nFeatures assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback.",
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"required": false,
|
"required": false,
|
||||||
"type": "array",
|
"type": "array",
|
||||||
@ -4012,7 +4012,7 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/lnrpcFeatureBit"
|
"$ref": "#/definitions/lnrpcFeatureBit"
|
||||||
},
|
},
|
||||||
"description": "*\nFeatures assumed to be supported by the final node. All transitive feature\ndepdencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback."
|
"description": "*\nFeatures assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user