mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
Remove deprecated outgoing_chan_id from QueryRoutes
The singular outgoing_chan_id query parameter on LND's QueryRoutes is deprecated as of lnd 0.20.0 in favor of the plural outgoing_chan_ids. The code path was unreachable in RTL anyway: no caller of the GetQueryRoutes action ever populated outgoingChanId, so the query parameter was never sent. Drop the unused field, the effect's conditional URL builder, and the server-side passthrough.
This commit is contained in:
parent
48b71d49e3
commit
fceb59bfed
5 changed files with 10 additions and 11 deletions
|
|
@ -76,9 +76,6 @@ export const getQueryRoutes = (req, res, next) => {
|
|||
options = common.getOptions(req);
|
||||
if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); }
|
||||
options.url = req.session.selectedNode.settings.lnServerUrl + '/v1/graph/routes/' + req.params.destPubkey + '/' + req.params.amount;
|
||||
if (req.query.outgoing_chan_id) {
|
||||
options.url = options.url + '?outgoing_chan_id=' + req.query.outgoing_chan_id;
|
||||
}
|
||||
logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Graph', msg: 'Query Routes URL', data: options.url });
|
||||
request(options).then((body) => {
|
||||
logger.log({ selectedNode: req.session.selectedNode, level: 'DEBUG', fileName: 'Graph', msg: 'Query Routes Received', data: body });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue