Commit Graph

29 Commits (803773bb65a5bae560151896a86bcc161c47ca9d)

Author SHA1 Message Date
carla 969e300241
loop: add cancel swap to server interface 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
Oliver Gugger fb9034220c
mod: update lnd to v0.12.0 3 years ago
Oliver Gugger 2a732a4385
loop: add initiator string to user agent 4 years ago
Oliver Gugger 61b2387be7
looprpc+swap_client: add user agent string to swaps 4 years ago
Joost Jager c8666caf20
loopin: mpp pre-swap probe 4 years ago
Andras Banki-Horvath 86db43a2cb loopdb: store protocol version alongside with swaps
This commit adds the protocol version to each stored swap. This will be
used to ensure that when swaps are resumed after a restart, they're
correctly handled given any breaking protocol changes.
4 years ago
Joost Jager 43323ffbe2
loopout: extend htlc expiry based on conf target 4 years ago
Joost Jager e72d998e78
loopout: show expiry range in terms 4 years ago
carla cd2b08aec6
multi: consume and log sever state updates 4 years ago
Joost Jager c6c30e2988
multi: log server message 4 years ago
Joost Jager b61b886c16
loopd: group and clarify swap server parameters 4 years ago
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.
4 years ago
Andras Banki-Horvath c6e3829acd looprpc: bump protocol version 4 years ago
Joost Jager b054e84eb2
Merge pull request #186 from joostjager/report-version
multi: report protocol version
4 years ago
Joost Jager 92730e0eaf
multi: report protocol version 4 years ago
Joost Jager 5588876b48
loopd: extract client configuration 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 b69e8cb275
multi: allow loop in last hop restriction 4 years ago
Oliver Gugger ccdbc3b21b
multi: thread new config values through client 4 years ago
Johan T. Halseth d5c9a66c60
swap_server_client: call server with SwapPublicationDeadline set 4 years ago
Oliver Gugger 1650f3a18d
client+lsat: specify global timeout 4 years ago
Oliver Gugger 8cecae501c
lsat: add unary interceptor and simple store 4 years ago
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.
4 years ago
Johan T. Halseth c70d0deecb
swap_server_client: let the SwapPublicationDeadline be set during LoopOuts 4 years ago
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.
5 years ago
Joost Jager 3e960b8b54
multi: loop in swap 5 years ago
Olaoluwa Osuntokun 94f347e673
multi: finalize rename from uncharge to loop out 5 years ago
Olaoluwa Osuntokun 908d82acdb
loop: extract code from client package into new loop primary package 5 years ago