2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-04 06:00:21 +00:00
Commit Graph

60 Commits

Author SHA1 Message Date
carla
87b02b7715
multi: add force tick endpoint behind debug server
To itest our autolooper, we need to be able to trigger dispatch on
demand. This functionality is included in a separate rpc server behind
a dev flag. Since it is unlikely that we need to split loop into
multiple rpc servers, this commit simply adds an additional debug server
rather than opting for a full subserver setup.
2020-10-15 13:53:27 +02:00
Carla Kirk-Cohen
afc41adab0
Merge pull request #295 from carlaKC/205-autoout
liquidity: add budget-limited autoloop
2020-10-15 08:50:46 +02:00
Oliver Gugger
61b2387be7
looprpc+swap_client: add user agent string to swaps 2020-10-13 08:28:55 +02:00
carla
eb6b476469
looprpc: add autoloop parameters to rpc server 2020-10-12 13:34:56 +02:00
carla
f23a527927
looprpc: add fee and backoff parameters to rpc 2020-09-30 12:46:35 +02:00
Joost Jager
c8666caf20
loopin: mpp pre-swap probe 2020-09-17 13:24:54 +02:00
Andras Banki-Horvath
133f3cac5f multi: integrate the new htlc v2 scripts to loop in/out
This commit bumps the current protocol version and integrates htlc v2
with loop in/out for new swaps, while keeping htlc v1 for any pending
swaps with previous protocol versions.
2020-09-09 19:54:01 +02:00
carla
6b93c70b8a
looprpc: add swap suggestions endpoint 2020-09-03 10:36:44 +02:00
carla
6fcbf54c02
looprpc: add get and set liquidity parameters endpoints 2020-09-02 11:50:15 +02:00
carla
852f459391
multi: add htlc confirmations parameter to client loop out request 2020-08-04 20:29:09 +02:00
carla
8da0ea6048
looprpc: add label to swap creation and display in list swaps 2020-08-03 11:00:56 +02:00
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.
2020-07-30 09:15:42 +02:00
Gabriel Comte
6e916f2e40 looprpc/docs: fix typo 2020-07-17 16:10:29 +02:00
Joost Jager
e72d998e78
loopout: show expiry range in terms 2020-07-16 21:30:15 +02:00
Joost Jager
05fd1da496
looprpc: update server proto 2020-07-16 21:30:13 +02:00
carla
cd2b08aec6
multi: consume and log sever state updates 2020-07-16 21:02:06 +02:00
Joost Jager
8d1ec50fa7
looprpc: split quote message 2020-07-14 19:26:30 +02:00
Joost Jager
24099aa4f9
looprpc: split terms message 2020-07-14 15:26:23 +02:00
Joost Jager
1869ad670f
looprpc: expose server message to clients 2020-06-30 16:59:10 +02:00
Joost Jager
c6c30e2988
multi: log server message 2020-06-30 16:59:04 +02:00
Joost Jager
8a4ce0ed89
looprpc: fix doc on routing fee units 2020-06-15 14:58:21 +02:00
Joost Jager
0ef659a486
looprpc: generate with latest lnd versions of the proto generators
3ef41dd198
2020-06-15 14:58:19 +02:00
carla
65c847674d
multi: add preimage push to loop out after sweep attempt
Once we have revealed our preimage to the world with a sweep attempt,
we can safely push our preimage to the server to speed up on chain
claim.

Rather than rely on the server, we use the state of our invoice in lnd
to determine whether we should continue trying to push the preimage to
the server.
2020-06-08 12:54:08 +02:00
Joost Jager
ccec719423
looprpc: add outgoing channel set restriction
Expose the new channel set restriction on the loopd client rpc.
2020-05-21 11:22:06 +02:00
Andras Banki-Horvath
c6e3829acd looprpc: bump protocol version 2020-05-05 15:49:06 +02:00
Andras Banki-Horvath
f0aff9b7bd looprpc+loopin: support for native segwit htlcs
This commit extends SwapResponse and SwapStatus with np2wsh and p2wsh
htlc output addresses to support both nested and native segwit htlcs
in loop-in.

Furthermore the commit adds support for native segwith loop-in htlcs.
When the htlc is paid internally, as of this commit we'll use NP2WSH,
otherwise users are free to select whether to pay the NP2WSH or the
P2WSH htlc.
2020-05-05 15:49:05 +02:00
Joost Jager
92730e0eaf
multi: report protocol version 2020-04-28 16:01:30 +02:00
Joost Jager
7cb914927f
looprpc: fix formatting 2020-04-27 15:43:32 +02:00
carla
fc99c8b320
multi: add confirmation target to loop in 2020-04-17 09:56:21 +02:00
Oliver Gugger
f5fbf6655d
looprpc: clarify loop quote response 2020-03-06 09:30:28 +01:00
Oliver Gugger
1811aa49a3
looprpc: remove streaming REST endpoint, fix comment 2020-02-18 09:27:19 +01:00
Joost Jager
b69e8cb275
multi: allow loop in last hop restriction 2020-02-17 19:59:07 +01:00
Joost Jager
535e964ec9
loopdb: migrate loop in channel to last hop
A database field was already in place to allow channel selection for
loop in. Unfortunately this field, which contains a short channel id,
isn't easily usable for controlling the loop server payment. Because of
non-strict forwarding, it is only possible to constrain a route to a
specific last hop pubkey.

This commit converts the existing field into a pubkey field.
2020-02-17 19:59:05 +01:00
Olaoluwa Osuntokun
fec3586e21
looprpc: re-gen protos 2020-02-04 18:45:27 -08:00
Olaoluwa Osuntokun
39640d2465
looprpc: add cli commands to all calls 2020-02-04 18:42:32 -08:00
Oliver Gugger
b694a76be0
looprpc+loopd: deprecate string ID 2020-01-31 13:57:28 +01:00
Oliver Gugger
3e25bc3174
loopd+looprpc: add REST compatible status calls 2020-01-31 13:57:22 +01:00
Johan T. Halseth
b102802ce5
looprpc: add SwapPublicationDeadline to QuoteRequest 2020-01-07 13:43:39 +01:00
Johan T. Halseth
48f6f0fc5c
looprpc: add updated server proto 2020-01-07 13:28:22 +01:00
Oliver Gugger
47bf510bd8
loopd: add RPC method to list tokens 2019-12-06 09:23:52 +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
Johan T. Halseth
ae3893c2d4
looprpc: add swap_publication_deadline to ServerLoopOutRequest 2019-11-21 18:47:01 +01: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
Johan T. Halseth
5fd51c0a3f
looprpc: remove go_package option
Not needed.
2019-10-08 22:28:20 +02:00
Oliver Gugger
be9a2b9a47
looprpc: add external HTLC flag to quote request 2019-09-23 09:58:52 +02:00
Oliver Gugger
036db6646f
looprpc: regenerate with correct version 2019-09-23 09:54:33 +02:00
Nigel Christian
861808530a loop: add REST endpoints for Loop In 2019-09-04 20:48:48 -07: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