mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
lnrpc: add feature bits to PayReq
This commit is contained in:
parent
f34239889b
commit
5defa425e1
3 changed files with 692 additions and 582 deletions
1240
lnrpc/rpc.pb.go
1240
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load diff
|
@ -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 {}
|
||||||
|
|
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue