Commit Graph

48 Commits (4da4738a2d3a271e2b9ba6be066f1c38a82de5f7)

Author SHA1 Message Date
Joost Jager 0c9fcd790e
lndclient: move to github.com/lightninglabs/lndclient 4 years ago
Joost Jager 83f25c98a3
loopd: return missing p2wsh loop out address 4 years ago
Joost Jager b61b886c16
loopd: group and clarify swap server parameters 4 years ago
Oliver Gugger c2e513ecd0
loopd: remove short flags to avoid collision 4 years ago
Oliver Gugger 74b3580e01
loopd+cmd/loopd: rename main Start function to Run 4 years ago
Oliver Gugger 774a44fac1
loopd: add StartAsSubserver method and started flag 4 years ago
Oliver Gugger 506d0c2257
loopd: refactor into Start/Stop methods 4 years ago
Oliver Gugger 215e5b99d6
loopd: extract daemon into struct 4 years ago
Oliver Gugger e696a38ec8
loopd: export Config struct 4 years ago
Oliver Gugger 5f70a05463
loopd: export DefaultConfig 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
Joost Jager 8c544bf2ba
loopdb: store outgoing channel set
Upgrade the database schema to allow for multiple outgoing channels.
This is implemented as an on-the-fly migration leaving the old key in
place.
4 years ago
Joost Jager c62acd5b85
lndclient: add outgoing channel set restriction
Expose the channel set restriction that was introduced in LND 0.10.1 on
the proxy object.
4 years ago
Andras Banki-Horvath 936bb851f2 loopin: fix htlc address in LoopIn SwapResponse 4 years ago
Joost Jager 27a2b1a775
loopd: fix setting of max parts 4 years ago
Andras Banki-Horvath 0aa978bd09 loopin: modify internally published htlc to use p2wsh 4 years ago
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.
4 years ago
Andras Banki-Horvath 62f654eef1 client: make ListSwaps thread safe 4 years ago
Andras Banki-Horvath 7a44eec36f loopin: refactor LoopIn to return struct instead of tuple 4 years ago
Joost Jager 12ae3d6a40
loopd: make maximum number of payment parts configurable 4 years ago
Joost Jager 5588876b48
loopd: extract client configuration 4 years ago
Oliver Gugger ad4e1e971e
loopd: check lnd version and subservers 4 years ago
Oliver Gugger a8e6118cfb
loopd+lndclient: extract config parameters into struct 4 years ago
carla fc99c8b320
multi: add confirmation target to loop in 4 years ago
carla f726fc2bc8
loopd: add missing zero case to validateConfTarget
Update validate function to return default target for zero value
confirmation targets, as indicated by the comment. This change
introduces a behaviour change for direct rpc calls to loopd (ie,
those not made by the loop cli tool). Previously, these calls
would fail and indicate that the conf target must be > 2, now
they will succeed with the default conf target. The loop cli
tool is unaffected because we already set the default value.

When clients upgrade from a previous version of loopd which did
not have this check, preexisting loops will be unaffected, because
loop ins had the default of 6 confirmations set, and loop outs with
<2 conf target would not have been created.
4 years ago
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.
4 years ago
Andras Banki-Horvath f4be20cc5e loopd: add missing mutex unlock and fix subtle reace condition 4 years ago
Wilmer Paulino 5b732d9012
loopd: add SOCKS proxy config option to dial swap server over Tor
This allows Loop users to further improve their privacy by not revealing
their source IP address. Note that the identity of the lnd node behind
Loop can still be revealed when performing a Loop In due to the swap
server extending an off-chain HTLC to the user.

Onion addresses don't yet exist for the swap servers, but they will be
added at a later time.
4 years ago
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.
4 years ago
Oliver Gugger ae376a49ba
loopd: fix linter issue 4 years ago
Oliver Gugger 8c7eee2ba9
loopd: add option to configure CORS origin 4 years ago
Oliver Gugger b694a76be0
looprpc+loopd: deprecate string ID 4 years ago
Oliver Gugger 26c0c17dbd
loopd+cli: set max gRPC message receive size 4 years ago
Oliver Gugger e070494565
loopd: instruct REST proxy to print default values 4 years ago
Oliver Gugger 3e25bc3174
loopd+looprpc: add REST compatible status calls 4 years ago
Oliver Gugger 403b4097de
loopd: move global state into server state 4 years ago
Oliver Gugger 098e269fe6
loopd: add LSAT enabled server ports 4 years ago
Oliver Gugger ccdbc3b21b
multi: thread new config values through client 4 years ago
Oliver Gugger 8aeeaefbaf
loopd+lsat: add LSAT cost configuration parameters 4 years ago
Johan T. Halseth b2d1d99521
loopd call swapserver with SwapPublicationDeadline set 4 years ago
Johan T. Halseth 0a51bf4d2d
loopd: make lnd conn configurable 4 years ago
Johan T. Halseth 34c2e71f9e
loopd: move lnd services init to config
This allows us to supply custom lnd connections to the daemon.
4 years ago
Johan T. Halseth c7e8c9f964
loopd: make RPC listener configurable
Allows to use external listener, such as in-memory.
4 years ago
Johan T. Halseth 0f0573c047
loopd/daemon: make server gRPC/REST listeners configurable 4 years ago
Johan T. Halseth 391ae9dc6b
loopd/daemon: handle proxy error
Check returned error to make linter happy.
4 years ago
Johan T. Halseth 2334816a59
lndclient: split NewLndServices to take gRPC dialer 4 years ago
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.
4 years ago
Johan T. Halseth 644b5b16f7
cmd+loopd: move loopd to new folder loopd 4 years ago