loop/cmd/loop
Boris Nagaev dd57e8fb4e
cmd/loop: fix path options and loopDir interaction
According to the comment in the code, loopdir should affect tls cert path and
macaroon path only if custom values were not set for them. However the actual
code ignored custom tls cert path and macaroon path if loopdir and/or network
was changed. For instance, the following call:

loop --network regtest --tlscertpath tls.cert --macaroonpath loop.macaroon

resulted in using ~/.loop/regtest/tls.cert and ~/.loop/regtest/loop.macaroon
instead of the files provided.

This commit fixes the code to match the description in the comment.
Also the comment was updated to mention custom network setting in addition
to custom loopdir.
2024-08-05 00:37:41 -03:00
..
info.go loop: client calls getInfo rpc 2023-05-24 17:50:26 +02:00
instantout.go cmd: add listinstantouts cmd 2024-03-04 12:26:17 +01:00
l402.go multi: replace LSAT with L402 2024-04-24 13:28:28 -03:00
liquidity.go loop: xpub support for loop out 2023-07-27 13:51:53 +02:00
loopin.go loop: fix loop out help text 2023-08-21 15:30:02 +02:00
loopout.go cli: add payment_timeout option to the CLI as well 2024-05-23 17:17:21 +02:00
main.go cmd/loop: fix path options and loopDir interaction 2024-08-05 00:37:41 -03:00
monitor.go looprpc+loop: report swap cost over rpc 2019-05-20 13:57:20 +02:00
quote.go multi: pass private, routehints from loopcli - loopd - loop server 2021-12-07 21:04:07 -05:00
reservations.go loop: add reservation cli commands 2024-01-17 15:59:08 +01:00
swaps.go cmd: add listswaps filtering 2024-01-04 15:14:32 +01:00
terms.go multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00
utils.go multi: move server proto files to their own directory 2021-12-13 13:56:40 +02:00