Skip to content
5,089 changes: 2,592 additions & 2,497 deletions lnrpc/lightning.pb.go

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions lnrpc/lightning.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3209,6 +3209,12 @@ message QueryRoutesRequest {
channel may be used.
*/
repeated uint64 outgoing_chan_ids = 20;

/*
If set, imputed costs are taken into account in the search for the optimal
path.
*/
ImputedCostRestriction imputed_cost_restriction = 21;
}

message NodePair {
Expand Down Expand Up @@ -3238,6 +3244,19 @@ message EdgeLocator {
bool direction_reverse = 2;
}

message ImputedCostRestriction {
/*
The name of the namespace for calculating the imputed costs.
*/
string namespace = 1;

/*
The maximum number of millisatoshis that may be incurred, including routing
fees and imputed costs.
*/
int64 total_cost_limit_msat = 2;
}

message QueryRoutesResponse {
/*
The route that results from the path finding operation. This is still a
Expand Down
33 changes: 33 additions & 0 deletions lnrpc/lightning.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,21 @@
"format": "uint64"
},
"collectionFormat": "multi"
},
{
"name": "imputed_cost_restriction.namespace",
"description": "The name of the namespace for calculating the imputed costs.",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "imputed_cost_restriction.total_cost_limit_msat",
"description": "The maximum number of millisatoshis that may be incurred, including routing\nfees and imputed costs.",
"in": "query",
"required": false,
"type": "string",
"format": "int64"
}
],
"tags": [
Expand Down Expand Up @@ -1662,6 +1677,10 @@
"format": "uint64"
},
"description": "The channel ids of the channels allowed for the first hop. If empty, any\nchannel may be used."
},
"imputed_cost_restriction": {
"$ref": "#/definitions/lnrpcImputedCostRestriction",
"description": "If set, imputed costs are taken into account in the search for the optimal\npath."
}
}
}
Expand Down Expand Up @@ -5582,6 +5601,20 @@
}
}
},
"lnrpcImputedCostRestriction": {
"type": "object",
"properties": {
"namespace": {
"type": "string",
"description": "The name of the namespace for calculating the imputed costs."
},
"total_cost_limit_msat": {
"type": "string",
"format": "int64",
"description": "The maximum number of millisatoshis that may be incurred, including routing\nfees and imputed costs."
}
}
},
"lnrpcInboundFee": {
"type": "object",
"properties": {
Expand Down
Loading
Loading