2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-13 13:10:30 +00:00
Commit Graph

127 Commits

Author SHA1 Message Date
Andras Banki-Horvath
5215222ced cmd: print both htlc addresses when monitoring a loop-in 2020-05-05 15:49:06 +02:00
Oliver Gugger
3ea07f167f
cmd/loop: clarify some flag descriptions 2020-04-21 15:53:18 +02:00
Oliver Gugger
3b630667a5
cmd/loop: improve displayed limits 2020-04-21 15:53:18 +02:00
carla
fc99c8b320
multi: add confirmation target to loop in 2020-04-17 09:56:21 +02:00
carla
1f5aeff45f
multi: unify default sweep/htlc conf targets
Create a HtlcConfTarget which is used as a default for quote
and loop in. Update loop out quote to use the existing var
rather than just 6 inline.
2020-04-17 09:40:18 +02:00
carla
e36c5a45d3
loop: fix loop in quote conf target flag usage field 2020-04-15 09:19:29 +02:00
Alex Bosworth
933f1b81d1
cmd/loop: bump rate maximum
Increase rate maximum multiplier to increase maximum fees when there is a large fee rate change
2020-03-13 14:03:20 -07:00
Oliver Gugger
acdd2a22b2
cmd/loop: warn user if fee estimation fails 2020-03-06 10:13:17 +01:00
Oliver Gugger
a57a2947b5
cmd/loop: add loop in quote command 2020-03-04 16:39:54 +01:00
Joost Jager
b69e8cb275
multi: allow loop in last hop restriction 2020-02-17 19:59:07 +01:00
Oliver Gugger
60e1fd2481
cmd/loop: remove number of flags restriction
With the restriction in place, it is not possible to use the
--conf_target and --fast flag at the same time. To avoid similar
problems in the future, the check for the number of amounts is
removed completely.
2020-02-06 14:04:26 +01:00
Oliver Gugger
2dc7d465fa
mod+cli: default to hex encoding for byte slices 2020-01-31 13:57:29 +01:00
Oliver Gugger
26c0c17dbd
loopd+cli: set max gRPC message receive size 2020-01-31 13:57:26 +01:00
Oliver Gugger
d446d68eeb
cmd/loop: add listswaps and swapinfo commands 2020-01-31 13:57:25 +01:00
Olaoluwa Osuntokun
e4ffb0803c
Merge pull request #128 from Free-FreeThinker/free--max-routing-fee-config
Add option for max swap off-chain routing fee
2020-01-13 22:01:28 -08:00
FreeThinker
321f5f791d cmd/loop: add an option for max off chain swap fee 2020-01-12 14:20:39 -08:00
Johan T. Halseth
18608a6aa3
cmd/loop: account for fast swap in loopout cmd quote 2020-01-07 13:47:07 +01:00
Johan T. Halseth
dcc5a8ce88
cmd/loop: add fast option to quote cmd 2020-01-07 13:46:40 +01:00
Johan T. Halseth
c7e8c9f964
loopd: make RPC listener configurable
Allows to use external listener, such as in-memory.
2020-01-03 14:01:32 +01:00
Johan T. Halseth
704bfff8f6
cmd+loopd: new cmd/loopd main method replacing the one now in ./loopd
This allows loopd to be used as a library by importing it and calling
Start.
2020-01-03 14:01:31 +01:00
Johan T. Halseth
644b5b16f7
cmd+loopd: move loopd to new folder loopd 2020-01-03 14:01:31 +01:00
Oliver Gugger
fa62caa891
cmd/loop: add command to list tokens 2019-12-06 09:23:52 +01:00
Oliver Gugger
47bf510bd8
loopd: add RPC method to list tokens 2019-12-06 09:23:52 +01:00
Oliver Gugger
31bb18255e
lsat+loopd: add logger 2019-12-05 11:19:35 +01:00
Oliver Gugger
49cbe9aa63
loopd: add swap server TLS cert path
We need the ability to connect to a swap server that uses
a self-signed certificate. The LSAT proxy cannot proxy insecure
gRPC requests since they don't conform to the HTTP 1.1 standard.
Therefore the LSAT proxy fill only serve TLS connections.
This means, we need the TLS path option to specify the certificate
the test environment LSAT proxy uses.
2019-11-26 09:32:08 +01:00
Johan T. Halseth
7ea0e35299
cmd/loop: delay swap by 30 minutes by default, add --fast to loopout command
We now delay the swap by up to 30 minutes by deafult. To keep the
current imemdiate swap, --fast flag is added.
2019-11-21 18:47:01 +01:00
Johan T. Halseth
ea1f9ff8ba
looprpc: add SwapPublicationDeadline to client proto
cmd/loopd swapclient_server: use SwapPublicationDeadline from LoopOutRequest
2019-11-21 18:47:01 +01:00
Oliver Gugger
b574e344ea
multi: add persistent logger 2019-10-28 17:09:23 +01:00
Oliver Gugger
69f2af9fdc
loop+cmd: extract types into swap module 2019-10-09 16:14:06 +02:00
Oliver Gugger
36838cf7f4
multi: fix most obvious linter errors 2019-10-09 14:35:41 +02:00
Johan T. Halseth
0023d1a0da
looprpc: update to new server protos
We update to new set of server protos where new Terms calls are added.
Here static information will be returned from the server.

We no longer have a feebase+feerate, but get a final fee directly
returned by the server.
2019-10-08 22:28:20 +02:00
Johan T. Halseth
0cff92d265
looprpc+cmd: deprecate dynamic terms
We move destination and cltv to QuoteResponse, and deprecate the
non-static fields.

Terms will now only show max/min swap sizes.
2019-10-08 22:28:20 +02:00
Oliver Gugger
c00f831675
cmd/loop: handle external loop in flag 2019-09-23 10:30:01 +02:00
Oliver Gugger
489ab5620e
loopd: receive external HTLC flag in loop in quote request 2019-09-23 10:08:34 +02:00
Wilmer Paulino
c16e170338
multi: expose confirmation target for loop out HTLC sweep 2019-07-10 18:00:47 -07:00
Wilmer Paulino
a138790822
multi: expose confirmation target for loop out quotes 2019-07-10 18:00:46 -07:00
Joost Jager
13ab5a219f loopd: remove mainnet loop in block 2019-06-25 11:43:23 +02:00
Joost Jager
6aa9071c4d
looprpc+loop: report swap cost over rpc 2019-05-20 13:57:20 +02:00
Joost Jager
6efa62347b
multi: store swap cost in database 2019-05-20 13:57:18 +02:00
Joost Jager
ca3cfc1431
loopd: use proper default swap server address
This commit fixes the bug that caused running loopd on testnet to
connect to the mainnet swap server.
2019-05-03 10:17:26 +02:00
Olaoluwa Osuntokun
f1f72bb2d1
cmd/loopd: only replace testnet swapserver if not already set 2019-04-24 18:26:45 -07:00
Olaoluwa Osuntokun
893954e69b
Merge pull request #47 from alexbosworth/decrease-max-routing-fee
cmd/loop: reduce off-chain payment max-fee
2019-04-22 15:28:54 -07:00
Olaoluwa Osuntokun
6037d0105f
cmd/loopd: rename MacaroonPath to MacaroonDir 2019-04-18 16:11:33 -07:00
Olaoluwa Osuntokun
6d00809575
cmd/loopd+lndclient: based on the network, update the macaron path if unset 2019-04-18 16:11:29 -07:00
Alex Bosworth
cdd5a7eea0
cmd/loop: reduce off-chain payment max-fee 2019-04-18 15:29:39 -07:00
Joost Jager
7f9ab312fb
loopd: fix nil ptr derefence for monitor
Reason for the crash was an unpopulated HtlcAddress field.
2019-04-11 09:06:59 +02:00
Joost Jager
30c7d71c57
use np2wsh for loop in htlc 2019-04-04 15:49:02 +02:00
Joost Jager
b5d2fb3894
loopd: add loop in state InvoiceSettled 2019-04-02 10:54:40 +02:00
Joost Jager
f7676c3489
loop: show correct swap type 2019-04-02 10:54:12 +02:00
Joost Jager
f7f9751a1a
loop: hide loop in channel selection flag 2019-04-02 10:54:11 +02:00
Joost Jager
2e48ead6d6
loopd: loop in from external address
Allow user to specify that htlc will be published by an external source.
In that case no internal htlc tx will be published.

To facilitate sending to the htlc address, the swap initiation response
is extended with that address.
2019-04-02 00:02:04 +02:00
Joost Jager
8b2da64b0a
loopd: disable mainnet loop in 2019-03-28 11:56:49 +01:00
Joost Jager
3e960b8b54
multi: loop in swap 2019-03-28 11:56:49 +01:00
Joost Jager
9a1b60b4be
multi: always supply chain params when decoding addresses 2019-03-26 17:25:51 +01:00
Olaoluwa Osuntokun
ec40647147
Merge pull request #25 from Roasbeef/testnet-server
cmd/loopd: point to testnet loop server for testnet mode
2019-03-22 16:06:34 -07:00
Olaoluwa Osuntokun
e14e7e94b2
Merge pull request #26 from alexbosworth/keyword-amt-argument
cmd/loop: add amount as a discrete argument
2019-03-22 16:05:21 -07:00
Olaoluwa Osuntokun
c0a1b4e2ac
cmd/loopd: point to testnet loop server for testnet mode
Fixes #20.
2019-03-22 16:02:04 -07:00
Francisco Calderón
c9e482e58f
Change loopd global option parameter to rpcserver 2019-03-22 14:53:37 -03:00
Alex Bosworth
dd357ddb22
cmd/loop: add amount as a discrete argument 2019-03-21 22:02:08 -07:00
Joost Jager
4c910f28b0
loop: fix cmd line arg parsing bug 2019-03-21 13:41:50 +01:00
Olaoluwa Osuntokun
b744afaa6f
cmd/loop: add new key word argument for optional destination sweep address 2019-03-20 17:29:47 -07:00
Olaoluwa Osuntokun
f089ff3484
cmd/loop: use loop.Version() for loop cli version 2019-03-20 17:16:38 -07:00
Olaoluwa Osuntokun
fff001fd2e
cmd/loopd: show version on start up, add new --version flag 2019-03-20 17:16:11 -07:00
Olaoluwa Osuntokun
48d34ed398
cmd/loop: add command for quote 2019-03-15 16:27:44 -07:00
Alex Bosworth
2e4b5dfd37
loopd: increase swap fee window 2019-03-13 16:41:26 -07:00
Wilmer Paulino
eb8277b9f9
cmd/loopd: add REST proxy 2019-03-12 15:35:53 -07:00
Wilmer Paulino
9edb910f53
looprpc: generate client REST definitions 2019-03-12 15:34:45 -07:00
Joost Jager
8d5faea971
loop: move commands to separate files 2019-03-07 11:51:16 +01:00
Joost Jager
e70fc169f3
loop: configurable loopd address 2019-03-07 11:48:55 +01:00
Joost Jager
6eb9861eb4
loopd: persistent configuration 2019-03-07 11:37:28 +01:00
Olaoluwa Osuntokun
94f347e673
multi: finalize rename from uncharge to loop out 2019-03-06 20:34:04 -08:00
Olaoluwa Osuntokun
925b52e01f
multi: rename swapcli to loop, swapd to loopd 2019-03-06 15:57:43 -08:00
Olaoluwa Osuntokun
68d49eee88
multi: update import paths to point to new looprpc pacakge 2019-03-06 15:53:23 -08:00
Olaoluwa Osuntokun
c33f30e43b
swapd: remove old rpc folder 2019-03-06 15:39:22 -08:00
Olaoluwa Osuntokun
ba1f427cf4
looprpc: move client+server protos to new looprpc package 2019-03-06 15:38:47 -08:00
Olaoluwa Osuntokun
a770e3d7c1
loop: update all import paths to public repo 2019-03-06 15:29:49 -08:00
Joost Jager
21fcd8d94e
Lightning Loop initial version 2019-03-06 21:30:34 +01:00