2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-16 00:12:52 +00:00
Commit Graph

719 Commits

Author SHA1 Message Date
carla
559abd1eea
liquidity: add default parameters struct 2020-09-30 12:46:31 +02:00
carla
ad8b5d0552
liquidity: add clock for mocking time in tests 2020-09-30 12:46:30 +02:00
carla
7e9034b2ff
liquidity: return OutRequest from swap suggestions and set fees
This commit updates swap suggestions to return loop out requests with
sufficient fields populated so that a loop out can directly be
dispatched from a suggestion. This requires setting of fees an min
sweep conf targets (our htlc conf target and addresss will be set by
the daemon's client rpc server if we do not provide them). We also do
some test refactoring so that we can more easily test the suggest swaps
endpoint.
2020-09-30 12:46:29 +02:00
Oliver Gugger
48744e8a2f
Merge pull request #301 from carlaKC/macaroons-suggestionendpoint
loopd: add suggestions endpoints to macaroon permissions
2020-09-30 12:07:36 +02:00
carla
ad2b37e709
loopd: add suggestions endpoints to macaroons 2020-09-30 11:15:30 +02:00
Olaoluwa Osuntokun
04af7f8bfc
Merge pull request #210 from joostjager/mpp-probe
loopin: mpp pre-swap probe
2020-09-24 11:32:08 -07:00
Oliver Gugger
4bb59f87bf
Merge pull request #298 from guggero/lnd-11.1
mod+loopd: bump to lnd v0.11.1-beta.rc3
2020-09-18 12:11:40 +02:00
Oliver Gugger
688659421b
mod+loopd: bump to lnd v0.11.1-beta.rc3
To make sure we can use the latest version of loop in LiT, we need to
make sure loop compiles against the actual v0.11.1 branch of lnd. There
were some conflicting changes to the macaroon service that didn't make
it to the branch that we need to roll back. Those changes don't affect
loop at all as we were always using the default root key ID anyway.
2020-09-18 08:58:16 +02:00
Joost Jager
c8666caf20
loopin: mpp pre-swap probe 2020-09-17 13:24:54 +02:00
Oliver Gugger
4e1eaa365a
Merge pull request #297 from guggero/expand-macaroonpath
config: expand macaroonpath flag
2020-09-17 11:11:20 +02:00
Oliver Gugger
8c5bcf7c50
config: expand macaroonpath flag 2020-09-17 10:45:57 +02:00
Oliver Gugger
456a29c523
Merge pull request #294 from guggero/macaroons-rn
release_notes: add macaroons
2020-09-11 14:32:50 +02:00
Oliver Gugger
b93b800986
release_notes: add macaroons 2020-09-11 14:23:18 +02:00
Oliver Gugger
d638d07fe3
Merge pull request #281 from guggero/macaroons
[2/3] loopd: add macaroon authentication to the loop RPC server
2020-09-11 12:44:33 +02:00
Oliver Gugger
9adbd59a34
README: mention macaroons 2020-09-11 12:27:37 +02:00
Oliver Gugger
617964e25f
loopd: allow loopd to be used as external subserver
When loopd runs in the same process as lnd (in LiT), it hooks itself
into lnd's RPC server as an external subserver. But because the user
should still be able to use the default loop macaroon, the loop daemon
must be able to validate its own macaroons as lnd's macaroon service
doesn't know the root key for it.
2020-09-11 12:25:39 +02:00
Oliver Gugger
8ecd9673f2
cmd/loop: add macaroon params to CLI 2020-09-11 12:25:35 +02:00
Oliver Gugger
751c70e6c7
loopd: add macaroon authentication to the daemon's server connection
To secure access to loop's RPC server, we add a macaroon authentication
service and its gRPC interceptors to the daemon's server connection.
2020-09-11 12:24:53 +02:00
Oliver Gugger
ff17553f3b
mod+loopd: update to lnd 0.11.1
We update to the newest version of lnd so we can use the updated
macaroon service.
NOTE: This is a compile time dependency update only, no RPC level update
is required.
2020-09-11 12:20:12 +02:00
Carla Kirk-Cohen
ccb9e077d7
Merge pull request #293 from carlaKC/inrepo-releasenotes
mutli: add release notes file to track in-repo
2020-09-11 09:12:28 +02:00
carla
a9f8682689
github: add pull request reminder to update release notes 2020-09-11 09:02:41 +02:00
carla
da6bcce297
mutli: add release notes file to track in-repo 2020-09-11 09:02:18 +02:00
Alex Bosworth
845f72c32f
Merge pull request #292 from lightninglabs/v0.9.0-beta
version: bump to 0.9.0-beta
2020-09-10 09:59:27 -07:00
Andras Banki-Horvath
98bdbcddfb tests: extend tests to also test resuming with HTLC v2 2020-09-09 19:54:01 +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
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.
2020-09-09 19:54:01 +02:00
Alex Bosworth
3f198746ad
version: bump to 0.9.0-beta
Increment version for new features
2020-09-09 10:51:44 -07:00
Carla Kirk-Cohen
a41b7c8ddd
Merge pull request #287 from tdickman/docker-go-1-13
Upgrade docker image to golang 1.13
2020-09-07 09:31:58 +02:00
Tom Dickman
2f6973296c
Upgrade docker image to golang 1.13
Building the docker image currently fails due to a module that requires
a minimum golang version of 1.13.
2020-09-04 11:06:24 -04:00
Oliver Gugger
fb5d374a1d
Merge pull request #286 from guggero/add-tls
[1/3] loopd: add TLS
2020-09-03 14:42:28 +02:00
Oliver Gugger
458ba7dc9e
README: mention TLS 2020-09-03 14:33:40 +02:00
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.
2020-09-03 14:20:18 +02:00
Oliver Gugger
39d1121c4b
cmd/loop: add TLS params to CLI 2020-09-03 14:19:55 +02:00
Oliver Gugger
a8d93bec6a
loopd: add TLS to the daemon's server connection 2020-09-03 14:19:51 +02:00
Oliver Gugger
17e0165d4c
loopd: add TLS config to listenerCfg struct
As a preparation to be able to listen on a TLS enabled listener, we add
a TLS config parameter to the listener setup functions.
2020-09-03 13:25:59 +02:00
Carla Kirk-Cohen
d3ede8d9e9
Merge pull request #278 from carlaKC/205-suggestions
liquidity: add swap suggestions endpoint
2020-09-03 10:50:28 +02:00
carla
d54d7055fa
loop: add swap suggestions command 2020-09-03 10:36:45 +02:00
carla
6b93c70b8a
looprpc: add swap suggestions endpoint 2020-09-03 10:36:44 +02:00
carla
340766fbb5
liquidity: add swap suggestions endpoint to manager 2020-09-03 10:36:43 +02:00
carla
8db6b32d74
liquidity: add swap suggestions for threshold rule for loop out 2020-09-03 10:36:42 +02:00
carla
cd8a7704af
liquidity: add calculations for threshold rule 2020-09-03 10:36:41 +02:00
Carla Kirk-Cohen
7a3dcc3a89
Merge pull request #265 from carlaKC/205-autoloop
liquidity: add liquidity manager with updatable runtime parameters
2020-09-03 10:35:59 +02:00
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.
2020-09-02 11:59:57 +02:00
carla
6fcbf54c02
looprpc: add get and set liquidity parameters endpoints 2020-09-02 11:50:15 +02:00
carla
ce10cc7959
liquidity: add manager with updatable parameters 2020-09-02 11:48:27 +02:00
Alex Bosworth
2ac5d8defa
Merge pull request #282 from lightninglabs/remove-darwin-386
release: remove support for darwin 386
2020-08-31 09:33:42 -07:00
Joost Jager
d4d9aa1024
Merge pull request #284 from joostjager/bump-lndclient
build: update to tagged lndclient version
2020-08-31 13:32:39 +02:00
Joost Jager
1eb7d754f6
build: update to tagged lndclient version 2020-08-31 13:20:38 +02:00
Alex Bosworth
986bea3f96
release: remove support for darwin 386
Go 1.15 removes support for darwin 386, so it should be removed from the release build target
2020-08-30 14:24:09 -07:00
Alex Bosworth
10c7c34d59
Merge pull request #280 from lightninglabs/v0.8.1-beta
version: bump to 0.8.1-beta
2020-08-28 08:51:12 -07:00