Commit Graph

1390 Commits (master)
 

Author SHA1 Message Date
Harsha Goli bf84aef4be
release_notes: add release notes for bugfix 2 years ago
Harsha Goli 3fb75131ea
loopd: Consider network when making LND paths
In this commit we consider the passed network options when assuming the
LND macaroon path if not passed by user
2 years ago
Harsha Goli 05693411f7
Merge pull request #436 from arshbot/assume-yes
main: add --force to loop in/loop out
2 years ago
Harsha Goli 8dba29ad3e
docs: updated release notes 2 years ago
Harsha Goli f1a7d8fb49
multi: pass private, routehints from loopcli - loopd - loop server
This commit passes routehints all the way from when/if the user passes
them from the cli all the way to the backend loop server. If private is
used, this commit passes that boolean down to different stages, where it
is then converted into routehints.

main: add --private and --route_hints to quote

Adds --private and --route_hints flags to quote cli
2 years ago
Harsha Goli 4299147895
main: add --private flag to loop in
Adding the --private flag informs loopd that the connected node is
considered private (all channels are marked private) and the loop in
server may have trouble routing the payment. To handle this, loopd will
construct some hophints that will be sent to the loopin server to help
route. This commit merely adds the flag to the cli.
2 years ago
Harsha Goli 9db43a4dbd
loop: Reimplement SelectHopHints from lnd
In this commit, instead of importing SelectHopHints from lnd, we chose
to reimplement the functionality here, for the purpose of adding hop
hints in case the user informs us the client node is considered private.

In the future, we should modify the origin SelectHopHints to take
closures for all it's data sources, so we can use it's logic external
2 years ago
Harsha Goli 5504368844
loopin: Add --route_hints parameter
Adds the --route_hints parameter to loop quote
2 years ago
Carla Kirk-Cohen 2e6adeaa3f
Merge pull request #433 from carlaKC/419-swaptype
liquidity: add swap type and loop in fee logic
2 years ago
carla 8113c34bce
liquidity: add failed loop in swaps to swap traffic 2 years ago
carla 965b99d455
liquidity: add existing loop in swaps to budget calculations 2 years ago
carla 0f0be28599
liquidity: add loop in fees to fee categories 2 years ago
carla c067169e6f
liquidity: add loop fee estimation and swap interface impl
Add an implementation of our swap interface which can be used for
loop in, and fee estimation. For fee estimation, we always want to
calculate worst case loop in fees, so that autoloop never goes over
its budget. However, for loop in we can't estimate how much a
timeout would cost, because we must sweep the output (can't set
a limit like loop out), and fee estimation in a few hundred blocks
(when we'd sweep the timeout) is totally unreliable.

Instead, we use a high fee rate as our best-effort fee rate for
the future. We can also be confident that that loop in swaps will
succeed, since once the htlc is locked in, all that is required
is for the server to sweep.
2 years ago
carla 3e7782e1ab
liquidity: use builder in single place
In preparation of supporting multiple swap types, we move our swap
builder into a single place, so that we can check our `maySwap`
restriction per-swap (since we'll now have different checks for
different swap types.

To save ourselves from making multiple calls to the loop server for
the restrictions placed on each swap type, we still pass a single
set of restrictions in.
2 years ago
carla 91a90968d0
multi: surface swap type on rpc 2 years ago
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.
2 years ago
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.
2 years ago
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
2 years ago
Andras Banki-Horvath 9e227fc1ee
build: adding clean 2 years ago
Andras Banki-Horvath daa62b8ea2
mod: bump lnd to v0.14.1-beta 2 years ago
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
2 years ago
Oliver Gugger f0b2bb0888
release_notes: clear on release of new version 2 years ago
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.
2 years ago
Carla Kirk-Cohen 04b4f0a389
Merge pull request #432 from carlaKC/export-listnerconfig
loopd: export NewListenerConfig
2 years ago
Harsha Goli e52f6eff47
main: add --force to loop in/loop out
--force skips the confirmation prompt when performing loops. This is
super userful for scripts and negates the use of gnu yes
2 years ago
carla 618310fe6f
loopd: export NewListenerConfig 3 years ago
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
3 years ago
Harsha Goli 2558478707
bump lnd versions from 12.1-beta to 13.4-beta 3 years ago
Oliver Gugger 7c4d8f601e
Merge pull request #428 from lightninglabs/macaroon-stateless
Macaroon stateless
3 years ago
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.
3 years ago
Oliver Gugger 139eac6feb
Merge pull request #426 from lightninglabs/lnd-14
multi: bump lnd compile time dependency to v0.14.0-beta.rc1
3 years ago
Oliver Gugger 2c6e035235
multi: bump lnd compile time dependency to v0.14.0-beta.rc1 3 years ago
Carla Kirk-Cohen 6b04d8ecb0
Merge pull request #425 from carlaKC/lndclient-bump
multi: bump lndclient to v0.12.0-13
3 years ago
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.
3 years ago
Carla Kirk-Cohen 4c58d0c5e8
Merge pull request #418 from carlaKC/autoloop-builder
liquidity: add swap builder interface
3 years ago
carla 8bd7ee35be
liquidity: add swap builder interface 3 years ago
carla 4df6a4e7ca
liquidity: move loopout swap suggestion out of interface file 3 years ago
Carla Kirk-Cohen 7ac6e26e90
Merge pull request #413 from Kixunil/config-file-error-handling
Improve error handling of config file
3 years ago
Martin Habovstiak 158e22f2a7 Documented the menaing of returned bool 3 years ago
Martin Habovstiak c00da1cf09 Renamed explicitConfig to hasExplicitConfig
`hasExplicitConfig` is considered cleaner.
3 years ago
Martin Habovštiak 2c1e437f26
Remove extra space
Co-authored-by: Yong <yy2452@columbia.edu>
3 years ago
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
3 years ago
Oliver Gugger a5aec7b2e9
Merge pull request #411 from guggero/falafel-js-stubs
looprpc: add JSON stubs for interacting with looprpc from a WASM context
3 years ago
Alex Bosworth 63f34ec45c
Merge pull request #410 from lightninglabs/update-to-v0.15.0-beta
version: bump version to v0.15.0-beta
3 years ago
Oliver Gugger 360e3347be
Travis+make: compile JSON/WASM stubs 3 years ago
Oliver Gugger ca9ec4cfe7
looprpc: generate JSON/WASM client stubs 3 years ago
Alex Bosworth 7c4c021c07
version: bump version to v0.15.0-beta 3 years ago
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
3 years ago
Andras Banki-Horvath bfb191c233
docs: update release notes 3 years ago
Andras Banki-Horvath 9af6576dae
cli: add optional last hop to the loop in quote 3 years ago