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

824 Commits

Author SHA1 Message Date
carla
25b8d20f75
liquidity: add type to rules
In preparation for adding loop in swaps, we relate liquidity rules
to a specific type of swap that we want to dispatch. This allows us
to use a single rule format for multiple swap types.
2021-11-30 13:18:27 +02:00
carla
00c2d4e5f0
liquidity: generalize threshold rule variable names
The current wording in this function is very specific to loop out.
In this commit, we refactor to use `target` and `reserve` rather
than inbound and outbound so that it can be used more generically.
2021-11-30 13:18:26 +02:00
András Bánki-Horváth
06c4c347fd
Merge pull request #440 from bhandras/lnd_bump-0.14.1-beta
mod: bump lnd to v0.14.1-beta
2021-11-29 17:13:54 +01:00
Andras Banki-Horvath
9e227fc1ee
build: adding clean 2021-11-29 16:36:50 +01:00
Andras Banki-Horvath
daa62b8ea2
mod: bump lnd to v0.14.1-beta 2021-11-29 16:33:21 +01:00
Oliver Gugger
18395d143a
Merge pull request #438 from guggero/lnd-14-final
multi: bump lnd to v0.14.0-beta final, release v0.15.1-beta
2021-11-18 14:53:24 +01:00
Oliver Gugger
f0b2bb0888
release_notes: clear on release of new version 2021-11-18 14:10:58 +01:00
Oliver Gugger
0ea64e81fb
multi: bump lnd to v0.14.0-beta final, release v0.15.1-beta
With this PR we include the final version of the lnd v0.14.0-beta
release to ensure compatibility.
The rationale for choosing Loop version 0.15.1 instead of 0.16.0 is that
this doesn't add any major new features.
2021-11-18 13:53:48 +01:00
Carla Kirk-Cohen
04b4f0a389
Merge pull request #432 from carlaKC/export-listnerconfig
loopd: export NewListenerConfig
2021-11-18 10:03:33 +01:00
carla
618310fe6f
loopd: export NewListenerConfig 2021-11-12 11:26:07 +02:00
András Bánki-Horváth
9f399c56a5
Merge pull request #431 from arshbot/loopserver-update-lnd
bump lnd versions from 12.1-beta to 13.4-beta
2021-11-12 09:52:14 +01:00
Harsha Goli
2558478707
bump lnd versions from 12.1-beta to 13.4-beta 2021-11-11 16:40:27 -05:00
Oliver Gugger
7c4d8f601e
Merge pull request #428 from lightninglabs/macaroon-stateless
Macaroon stateless
2021-11-05 10:47:08 +01:00
Turtle
1503001ee5
loopd: conditionally create default macaroon file
In some cases we don't want the default macaroon file to be created on
disk, so we allow passing in a boolean that toggles the macaroon
creation.
2021-11-04 14:09:27 +01:00
Oliver Gugger
139eac6feb
Merge pull request #426 from lightninglabs/lnd-14
multi: bump lnd compile time dependency to v0.14.0-beta.rc1
2021-11-04 11:22:29 +01:00
Oliver Gugger
2c6e035235
multi: bump lnd compile time dependency to v0.14.0-beta.rc1 2021-11-03 19:31:21 +01:00
Carla Kirk-Cohen
6b04d8ecb0
Merge pull request #425 from carlaKC/lndclient-bump
multi: bump lndclient to v0.12.0-13
2021-10-25 11:28:57 +02:00
carla
cca5926263
multi: bump lndclient to v0.12.0-13
To allow code with more up-to-date dependencies to import loop, we
bump our lndclient version. The minimum loop version remains 11.1
since we're not using any new apis.
2021-10-24 10:22:30 +02:00
Carla Kirk-Cohen
4c58d0c5e8
Merge pull request #418 from carlaKC/autoloop-builder
liquidity: add swap builder interface
2021-10-14 11:13:50 +02:00
carla
8bd7ee35be
liquidity: add swap builder interface 2021-09-28 10:31:04 +02:00
carla
4df6a4e7ca
liquidity: move loopout swap suggestion out of interface file 2021-09-17 12:50:39 +02:00
Carla Kirk-Cohen
7ac6e26e90
Merge pull request #413 from Kixunil/config-file-error-handling
Improve error handling of config file
2021-08-11 10:20:39 +02:00
Martin Habovstiak
158e22f2a7 Documented the menaing of returned bool 2021-08-10 08:25:32 +02:00
Martin Habovstiak
c00da1cf09 Renamed explicitConfig to hasExplicitConfig
`hasExplicitConfig` is considered cleaner.
2021-08-10 08:25:32 +02:00
Martin Habovštiak
2c1e437f26
Remove extra space
Co-authored-by: Yong <yy2452@columbia.edu>
2021-08-10 08:19:27 +02:00
Martin Habovstiak
84582bbb88 Improve error handling of config file
This makes two changes to handling of errors when configuration file
could not be loaded:

1. Only NotFound errors are considered OK - access errors and other FS
   issues are now treated as fatal.
2. Failing to load config file specified explicitly via `--configfile`
   option is alway a fatal error.

Rationale: If the configfile was specified explicitly then it indicates
the user really wishes to load it. While the user could want it to be
optionally loaded for extra configuration options, this can be
accomplished using an empty file.

If the config file was not specified explicitly then its' path was
computed from loop directory. If the file is inaccessible due to
permissions or other FS errors it's nearly certain other following
operations will fail as well. Failing early with a clear message is thus
beneficial.

This still leaves room for uncaught user error (e.g. mistakenly naming
config file inside loop dir as `loop.conf` instead of `loopd.conf`) but
it's greatly reduced and such error should be easier to identify.

(Indirectly) closes #412
2021-08-05 18:19:52 +02:00
Oliver Gugger
a5aec7b2e9
Merge pull request #411 from guggero/falafel-js-stubs
looprpc: add JSON stubs for interacting with looprpc from a WASM context
2021-08-05 09:37:49 +02:00
Alex Bosworth
63f34ec45c
Merge pull request #410 from lightninglabs/update-to-v0.15.0-beta
version: bump version to v0.15.0-beta
2021-08-03 07:30:29 -07:00
Oliver Gugger
360e3347be
Travis+make: compile JSON/WASM stubs 2021-08-03 13:19:44 +02:00
Oliver Gugger
ca9ec4cfe7
looprpc: generate JSON/WASM client stubs 2021-08-03 13:18:35 +02:00
Alex Bosworth
7c4c021c07
version: bump version to v0.15.0-beta 2021-08-02 11:46:45 -07:00
András Bánki-Horváth
91ad53a811
Merge pull request #387 from bhandras/loop_in_probe
loop-in:  allow clients to request server probes and extend loop-in quote with additional parameters for more accurate swap fees
2021-07-30 15:48:30 +02:00
Andras Banki-Horvath
bfb191c233
docs: update release notes 2021-07-30 13:22:13 +02:00
Andras Banki-Horvath
9af6576dae
cli: add optional last hop to the loop in quote 2021-07-30 13:22:13 +02:00
Andras Banki-Horvath
0e7ed91d5d
loop: integrate the probe api with loop-in quote
In this commit we add a call to the new probe endpoint directly into the
loop-in quote call. Furthermore we add an option to include private
channels in the loopin swap payment request. This is also useful for when
users quote/probe directly using the client API and specify hop hints.
2021-07-30 13:22:12 +02:00
Andras Banki-Horvath
f786aaa016
loop: add support for the probe API 2021-07-30 13:22:12 +02:00
Oliver Gugger
7d044f58e8
Merge pull request #409 from lightninglabs/grpc-gateway-update
multi: update lnd to master with grpc-gateway upgrade
2021-07-30 12:01:53 +02:00
Oliver Gugger
a7fff0ac2f
multi: update lnd master with grpc-gateway upgrade
To make loop work with the latest lnd version inside of LiT, we need
to upgrade the grpc-gateway library to the same v2 version here too.
2021-07-29 17:02:06 +02:00
Carla Kirk-Cohen
7a3e3bdad0
Merge pull request #368 from yyforyongyu/fix-test
loopout: fix TestCustomSweepConfTarget
2021-07-26 09:47:58 +02:00
Carla Kirk-Cohen
478f242f91
Merge pull request #407 from carlaKC/355-surfaceloopingrpcerr
multi: surface grpc error codes from server to client
2021-07-21 08:59:25 +02:00
Alex Bosworth
b9a3d1d920
Merge pull request #408 from lightninglabs/update-to-v0.14.2-beta
version: bump version to v0.14.2-beta
2021-07-20 10:16:43 -07:00
Alex Bosworth
e4911a7269
version: bump version to v0.14.2-beta 2021-07-20 12:27:06 -04:00
Carla Kirk-Cohen
79100cc413
Merge pull request #405 from carlaKC/533-newserverstate
looprpc: add swap multiple swap scripts server state to rpc enum
2021-07-20 12:33:46 +02:00
Oliver Gugger
7091b90e95
Merge pull request #404 from guggero/fix-alpn-error
loopd: fix ALPN issue with Python
2021-07-19 13:55:04 +02:00
carla
b8f1fd1c4e
release_notes: add grpc error code surfacing 2021-07-19 10:28:35 +02:00
carla
d1c26a20da
multi: surface server swap initiation grpc error codes
Formatting our error was stifling any grpc error returned by the
server. Instead, we bubble up our grpc error, setting an unknown
code if the server did not specifically return an error code.
2021-07-19 10:28:34 +02:00
carla
94692678f3
looprpc: add swap multiple swap scripts server state to rpc enum
Add a new failure state that the server may send to the client.
This state is sent for loop in swaps where the client has
erroneously published multiple outputs for a loop in swap (this
could happen if an end user created an external tx with too many
outputs). Failing the swap server side protects users from potential
footguns where they publish the hltc then the server can claim more
money than was paid out off chain. This can never happen when the
loop client publishes the htlc because it only ever contains one
output.
2021-07-16 10:28:17 +02:00
Oliver Gugger
5178cd1158
release_notes: update with Python ALPN fix 2021-07-15 12:55:56 +02:00
Oliver Gugger
e7ee29bd83
Merge pull request #403 from guggero/docker-rpc
looprpc: generate protos with docker
2021-07-15 11:28:27 +02:00
Oliver Gugger
803773bb65
loop+loopd: fix linter after re-generating protos
Apparently re-generating the protos caused the linter to pick up on
fields that are now deprecated. We need to fix that with a few comments.
2021-07-14 17:21:54 +02:00