lnrpc: add feature bits to PayReq

This commit is contained in:
Conner Fromknecht 2019-12-10 13:09:17 -08:00
parent f34239889b
commit 5defa425e1
No known key found for this signature in database
GPG key ID: E7D737B67FA592C7
3 changed files with 692 additions and 582 deletions

File diff suppressed because it is too large Load diff

View file

@ -2628,6 +2628,14 @@ message PayReq {
repeated RouteHint route_hints = 10 [json_name = "route_hints"]; repeated RouteHint route_hints = 10 [json_name = "route_hints"];
bytes payment_addr = 11 [json_name = "payment_addr"]; bytes payment_addr = 11 [json_name = "payment_addr"];
int64 num_msat = 12 [json_name = "num_msat"]; int64 num_msat = 12 [json_name = "num_msat"];
repeated Feature features = 13 [json_name = "features"];
}
message Feature {
uint32 bit = 1 [json_name = "bit"];
string name = 2 [json_name = "name"];
bool is_required = 3 [json_name = "is_required"];
bool is_known = 4 [json_name = "is_known"];
} }
message FeeReportRequest {} message FeeReportRequest {}

View file

@ -2243,6 +2243,26 @@
} }
} }
}, },
"lnrpcFeature": {
"type": "object",
"properties": {
"bit": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"is_required": {
"type": "boolean",
"format": "boolean"
},
"is_known": {
"type": "boolean",
"format": "boolean"
}
}
},
"lnrpcFeeLimit": { "lnrpcFeeLimit": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -3271,6 +3291,12 @@
"num_msat": { "num_msat": {
"type": "string", "type": "string",
"format": "int64" "format": "int64"
},
"features": {
"type": "array",
"items": {
"$ref": "#/definitions/lnrpcFeature"
}
} }
} }
}, },