2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-04 06:00:21 +00:00
Commit Graph

29 Commits

Author SHA1 Message Date
Wilmer Paulino
1ea58ad3d6
Merge pull request #125 from wpaulino/lndclient-listtransactions
lndclient: expose ListTransactions as part of LightningClient
2019-12-12 13:39:24 -08:00
Wilmer Paulino
43579b017f
lndclient: expose ListTransactions as part of LightningClient 2019-12-12 13:33:06 -08:00
Oliver Gugger
304c8f580f
lndclient: expose VerifyMessage RPC 2019-12-12 20:52:53 +01:00
Oliver Gugger
2a7c5182a4
lndclient: expose SignMessage RPC 2019-12-12 09:15:34 +01:00
Oliver Gugger
162b2589e0
lndclient: return node URIs from GetInfo call 2019-12-12 08:50:41 +01:00
Oliver Gugger
be6ea3bdeb
lndclient: use old value field for backward compatibility 2019-12-03 13:39:32 +01:00
Oliver Gugger
fc44ee8785
lndclient: fix Value/ValueMsat conversion problem 2019-12-03 10:42:01 +01:00
Joost Jager
7ff50ccc5a
lndclient: extend send payment parameters 2019-11-21 14:14:28 +01:00
Olaoluwa Osuntokun
539d6ed9e3
Merge pull request #112 from wpaulino/update-lnd-version
build: update lnd version to current master
2019-11-15 18:40:25 -08:00
Wilmer Paulino
52eaeeab77
build: update lnd version to current master
Projects that use a later version of lnd than loop, but also depend on
loop itself would run into the following build error:

github.com/lightninglabs/loop/lndclient
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:30:11: undefined: lnwallet.SatPerKWeight
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:32:54: undefined: lnwallet.SatPerKWeight
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:144:33: undefined: lnwallet.SatPerKWeight
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:176:2: undefined: lnwallet.SatPerKWeight
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:189:9: undefined: lnwallet.SatPerKWeight
2019-11-15 16:16:30 -08:00
Oliver Gugger
0225b6e0ea
lndclient: increase gRPC max message receive size to 200MiB 2019-11-15 16:29:20 +01:00
Oliver Gugger
b574e344ea
multi: add persistent logger 2019-10-28 17:09:23 +01:00
Oliver Gugger
36838cf7f4
multi: fix most obvious linter errors 2019-10-09 14:35:41 +02:00
Valentine Wallace
8311d70cbf lndclient/basic_client: add functional optional args to NewBasicClient. 2019-06-06 15:57:25 -07:00
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.
2019-06-06 13:57:49 +02:00
Joost Jager
dc2baf582f
lndclient: use SubscribeSingleInvoiceRequest message 2019-06-06 13:57:47 +02:00
Valentine Wallace
ee5f1852d6
lndclient: increase lightning gRPC block size to 50MB 2019-05-21 17:04:49 -07:00
Olaoluwa Osuntokun
56ab811f62
lndclient: modify basic_client.go to use the mac dir rather than path 2019-05-02 17:33:32 -07:00
Olaoluwa Osuntokun
52dbc03dda
lndclient: add NewBasicClient function 2019-04-30 19:43:08 -07:00
Olaoluwa Osuntokun
6d00809575
cmd/loopd+lndclient: based on the network, update the macaron path if unset 2019-04-18 16:11:29 -07:00
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.
2019-04-18 16:11:28 -07:00
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.
2019-04-18 16:11:26 -07:00
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.
2019-04-18 16:10:39 -07:00
Joost Jager
3e960b8b54
multi: loop in swap 2019-03-28 11:56:49 +01:00
Olaoluwa Osuntokun
c0d5238ab4
build: build against latest version of lnd 2019-03-15 17:22:07 -07:00
Joost Jager
6eb9861eb4
loopd: persistent configuration 2019-03-07 11:37:28 +01:00
Olaoluwa Osuntokun
908d82acdb
loop: extract code from client package into new loop primary package 2019-03-06 20:34:01 -08:00
Olaoluwa Osuntokun
a770e3d7c1
loop: update all import paths to public repo 2019-03-06 15:29:49 -08:00
Joost Jager
21fcd8d94e
Lightning Loop initial version 2019-03-06 21:30:34 +01:00