Commit Graph

124 Commits (v0.18.0-beta)

Author SHA1 Message Date
Harsha Goli 7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 2 years ago
Harsha Goli 0b414cb45e
main: fix feepercetn from intflags to float
Previously, the feepercent flag on autoloop was set to an IntFlag and
later converted to Float, leading to the issue where users couldn't
specify decimal rates even though we allowed it.
2 years ago
carla 2542038243
loop: allow setting swap type for individual rules 2 years ago
carla 5e24beb5a7
loop: add htlc conf target to set params 2 years ago
carla dad103530f
multi: move server proto files to their own directory
Protobuf does not allow naming conflicts for files within the same
process, because all proto messages register themselves in a global
registry.

This is problematic because the server's itests import the client's
looprpc package to make rpc queries to the loopd client, thus importing
duplicate common.proto and server.proto from the client's looprc package
(since they're both in there as well).

This change moves the server's proto files into their own directory so
that they are not imported when we want to use the client's files. We
cannot change the package name for the server, because that would be
a breaking change (the package name is included in URIS). Fortunately,
we have the go_package option which allows us to place generated files
in a different location.
2 years ago
Harsha Goli b7ba19394b
Merge pull request #415 from lightninglabs/routehints
loopin: Add --private parameter
2 years ago
Harsha Goli 05693411f7
Merge pull request #436 from arshbot/assume-yes
main: add --force to loop in/loop out
2 years ago
Harsha Goli f1a7d8fb49
multi: pass private, routehints from loopcli - loopd - loop server
This commit passes routehints all the way from when/if the user passes
them from the cli all the way to the backend loop server. If private is
used, this commit passes that boolean down to different stages, where it
is then converted into routehints.

main: add --private and --route_hints to quote

Adds --private and --route_hints flags to quote cli
2 years ago
Harsha Goli 4299147895
main: add --private flag to loop in
Adding the --private flag informs loopd that the connected node is
considered private (all channels are marked private) and the loop in
server may have trouble routing the payment. To handle this, loopd will
construct some hophints that will be sent to the loopin server to help
route. This commit merely adds the flag to the cli.
2 years ago
Harsha Goli 5504368844
loopin: Add --route_hints parameter
Adds the --route_hints parameter to loop quote
2 years ago
carla 91a90968d0
multi: surface swap type on rpc 2 years ago
Harsha Goli e52f6eff47
main: add --force to loop in/loop out
--force skips the confirmation prompt when performing loops. This is
super userful for scripts and negates the use of gnu yes
3 years ago
Oliver Gugger 2c6e035235
multi: bump lnd compile time dependency to v0.14.0-beta.rc1 3 years ago
Andras Banki-Horvath 9af6576dae
cli: add optional last hop to the loop in quote 3 years ago
Oliver Gugger 803773bb65
loop+loopd: fix linter after re-generating protos
Apparently re-generating the protos caused the linter to pick up on
fields that are now deprecated. We need to fix that with a few comments.
3 years ago
Oliver Gugger 27fd6b3304
multi: use aperture instead of local lsat library
Since the lsat code was copied over to aperture a while ago for other
projects to use as well, we should migrate over to that shared code
also. This will give us the recently added "remove token if payment
failed and try again" feature for free along with some other small
updates to the lsat package.
3 years ago
yyforyongyu d8f45b645c
cmd: increase max miner fee multiplier 3 years ago
yyforyongyu 82401ff1ba
cmd: prettify loop quote in/out responses 3 years ago
carla 299a0a4ff9
loop: add fee ppm to autoloop cli 3 years ago
carla bf9dfdabbe
loop: fix typo in htlc confs 3 years ago
carla b9aae4f8f9
loop: add peer rules to set rule command 3 years ago
carla 22bd4cabb4
looprpc: add disqualified channels to suggest swaps response 3 years ago
carla 7ba1821696
liquidity: fail suggest swaps when no rules are set
In an effort to surface more information about why autoloop is not
executing, we add an error when suggest swaps is called with no rules.
In other cases we can surface a reason enum with each rule that is set,
but in the case where we have no rules, there are no results to
accompany with reasons.
3 years ago
carla 71ace95ac8
loop: rename autoloop specific parameters 3 years ago
carla 87fd63713f
loop: add swap sizes to autoloop set params command 3 years ago
Oliver Gugger fcdd5fe9f8
cmd/loop: add initiator to swap requests 4 years ago
carla a2edd78f5a
loop: add autoout parameters to cli 4 years ago
carla ed95c16ae4
loop: add set params command 4 years ago
carla 8931fd370c
loop: rename setparam command to setrule
As we add more paramters to the liqudity manager, it will become more
difficult to include them in a single cli endpoint with rules. This
commit renames the existing setparam command (which is only used for
rules at present), so that we can have a dedicated paramters cli
command for all the new values we are adding.
4 years ago
Oliver Gugger 8ecd9673f2
cmd/loop: add macaroon params to CLI 4 years ago
Oliver Gugger dc99df0bfb
cmd/loop: return error in readMacaroon
As we only use the readMacaroon function inside getClientConn where we
have an error return value anyway, we might as well pass the error along
correctly instead of failing hard directly.
4 years ago
Oliver Gugger 39d1121c4b
cmd/loop: add TLS params to CLI 4 years ago
carla d54d7055fa
loop: add swap suggestions command 4 years ago
carla 81e4005bd2
loop: add get and set parameters endpoints
Add the ability to get and set our liquidity paramters to the cli. A
separate rule command is added to keep the cli simple.
4 years ago
carla 13449fb7ea
loop: add htlc confirmations flag to loop out command 4 years ago
carla f62d09528d
loop: allow creation of loops with labels on cli 4 years ago
carla a9849bb317
multi: add failure reason to swap client server
To provide more information about swaps, we add a failure reason field
to our swaps. We do not extend our existing state enum to remain
backwards compatible.
4 years ago
Joost Jager e72d998e78
loopout: show expiry range in terms 4 years ago
Joost Jager 8d1ec50fa7
looprpc: split quote message 4 years ago
Joost Jager 24099aa4f9
looprpc: split terms message 4 years ago
Joost Jager 1869ad670f
looprpc: expose server message to clients 4 years ago
Oliver Gugger 7538e3cd84
cmd/loop: set exit code 1 on error 4 years ago
Oliver Gugger 3a38f8faa4
cmd/loopd: add tlsCertPath and macaroonPath flags 4 years ago
Oliver Gugger 74b3580e01
loopd+cmd/loopd: rename main Start function to Run 4 years ago
Oliver Gugger 506d0c2257
loopd: refactor into Start/Stop methods 4 years ago
Joost Jager a3924cfbc4
cmd/loop: fix channel parsing 4 years ago
Joost Jager ccec719423
looprpc: add outgoing channel set restriction
Expose the new channel set restriction on the loopd client rpc.
4 years ago
Andras Banki-Horvath 5215222ced cmd: print both htlc addresses when monitoring a loop-in 4 years ago
Oliver Gugger 3ea07f167f
cmd/loop: clarify some flag descriptions 4 years ago
Oliver Gugger 3b630667a5
cmd/loop: improve displayed limits 4 years ago