Commit Graph

23 Commits (d4046a6053b624eaccf59d2f6f3d642644a07574)

Author SHA1 Message Date
Joost Jager e10cd7ca3a
lndclient: log version of connected lnd instance 4 years ago
Joost Jager 4871abfc80
Merge pull request #204 from Roasbeef/lndclient-resp
lndclient: also set gRPC max resp size for sub-servers
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
Olaoluwa Osuntokun e97ec65444
lndclient: also set gRPC max resp size for sub-servers
In this commit, we now ensure that we set the max resp size for the
sub-server connection we create. Without this, it's possible that
several calls fail if the responses aren't yet paginated, or are very
large.
4 years ago
Oliver Gugger 8848d30fb3
lndclient: check and cache version compatibility on connect 4 years ago
Oliver Gugger 211586e614
lndclient: cache node info on connect 4 years ago
Oliver Gugger 44d05f284b
lndclient+test: add versioner client and mock 4 years ago
Oliver Gugger a8e6118cfb
loopd+lndclient: extract config parameters into struct 4 years ago
Oliver Gugger f6a941244e
lndclient: use readonly macaroon for startup check 4 years ago
Johan T. Halseth 2334816a59
lndclient: split NewLndServices to take gRPC dialer 4 years ago
Johan T. Halseth 80b071a2e6
mod+lndclient: update to lnd version with non-deprecated dialer 4 years ago
Oliver Gugger 0225b6e0ea
lndclient: increase gRPC max message receive size to 200MiB 5 years ago
Oliver Gugger b574e344ea
multi: add persistent logger 5 years ago
Joost Jager f559120565
lndclient: add router sub server
This commit exposes router sub server functionality to loop. This is a
preparation for using reliable payments in loop out.
5 years ago
Valentine Wallace ee5f1852d6
lndclient: increase lightning gRPC block size to 50MB 5 years ago
Olaoluwa Osuntokun 6d00809575
cmd/loopd+lndclient: based on the network, update the macaron path if unset 5 years ago
Olaoluwa Osuntokun 5f6ad1161b
lndclient: switch to using per-call macaroons instead of a conn level macaroon
In this commit, we modify all sub-servers as well as the main lnd gRPC
service to use a macaroon per call rather than a connection level
macaroon. The old approach would result in us using the same macaroon
for the entire connection, while this new approach allows us to use
multiple macaroons with a single connection.

We move to this new approach as it doesn't require users to delete their
admin macaroon before being able to use Loop. It also preps us for a
future where there is no admin macaroon, and we instead need to use a
set of macaroons to accomplish our tasks.
5 years ago
Olaoluwa Osuntokun 2c97258ce7
lndclient: NewLndServices now accepts a macaroon directory, not admin mac path
In this commit, we modify the `NewLndServices` method to accept the
directory where macaroons are stored, rather than the path for the admin
macaroon. This is a prep to moving towards a multi-macaroon system, as
the `macaroonPouch` will handle storing the various macaroons.
5 years ago
Olaoluwa Osuntokun ee6191f844 lndclient: add new macaroonPouch struct
In this commit, we add a new struct, the `macaroonPouch`. This struct
bundles all the macaroons we need for each sub-server. Along the way, we
also export the set of default* paths for lnd, and add a new set of
variables that store the default file names of each of the macaroons for
each sub-server.

The `WithMacaroonAuth` method on the `serializedMacaroon` type will
allow us to attach a macaroon for each call rather than attaching it at
the connection level. This slight change will allow us to use multiple
macaroons over a single RPC connection, rather than a single global
macaroon.
5 years ago
Joost Jager 6eb9861eb4
loopd: persistent configuration 5 years ago
Olaoluwa Osuntokun 908d82acdb
loop: extract code from client package into new loop primary package 5 years ago
Olaoluwa Osuntokun a770e3d7c1
loop: update all import paths to public repo 5 years ago
Joost Jager 21fcd8d94e
Lightning Loop initial version 5 years ago