lnrpc: add feature bits to PayReq

This commit is contained in:
Conner Fromknecht committed 2019-12-10 13:09:17 -08:00
1 parent f34239889b
commit 5defa425e1
3 files changed
+692 -582

No files matched your search

+658 -582
View File
File diff suppressed because it is too large. Load diff
+8
View File
@@ -2628,6 +2628,14 @@ message PayReq {
repeated RouteHint route_hints = 10 [json_name = "route_hints"];
bytes payment_addr = 11 [json_name = "payment_addr"];
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 {}
+26
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": {
"type": "object",
"properties": {
@@ -3271,6 +3291,12 @@
"num_msat": {
"type": "string",
"format": "int64"
},
"features": {
"type": "array",
"items": {
"$ref": "#/definitions/lnrpcFeature"
}
}
}
},