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

132 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
6da8494a0f
Merge pull request #68 from lightninglabs/alexbosworth-patch-7
version: bump version to 2.0.1
2019-07-24 17:35:22 -07:00
Alex Bosworth
bf3c5797f6
version: bump version to 2.0.1
Bump the version number to the next release number
2019-07-23 11:54:22 -07:00
Olaoluwa Osuntokun
e8d696e119
Merge pull request #65 from wpaulino/sweep-conf-target
multi: expose confirmation target for loop out HTLC sweeps
2019-07-12 17:20:21 -07:00
Wilmer Paulino
47321ba4a4
loop: use default confirmation target for htlc sweep after expiry delta
In this commit, we introduce a delta from the on-chain HTLC's
expiration. Since clients are now able to specify a confirmation target
for the HTLC sweep, it's possible that the sweep doesn't confirm within
the intended target in the event of an increasing demand for block
space. Once the delta from the HTLC's expiration is reached, we'll begin
to use the default sweep confirmation target when sweeping the HTLC,
which should provide a timely confirmation. This is needed because if
the preimage has already been revealed, then we need to make sure we
sweep the HTLC before the server does.
2019-07-10 18:00:48 -07:00
Wilmer Paulino
c16e170338
multi: expose confirmation target for loop out HTLC sweep 2019-07-10 18:00:47 -07:00
Wilmer Paulino
a138790822
multi: expose confirmation target for loop out quotes 2019-07-10 18:00:46 -07:00
Olaoluwa Osuntokun
9df227d9d0
Merge pull request #63 from wpaulino/gen-protos-v1.3.1
looprpc: update generated protos to use protobuf v1.3.1
2019-07-03 19:21:28 -07:00
Wilmer Paulino
5d2aaeb7ef
looprpc: update generated protos to use protobuf v1.3.1
Although loop already depends on protobuf v1.3.1, the generated protos
were not updated to use this version.
2019-06-26 14:55:16 -04:00
Olaoluwa Osuntokun
7bcd7f0572
README: update to mention Loop In availability 2019-06-26 09:49:27 -07:00
Olaoluwa Osuntokun
a10015fce2
README: update readme with loop in+out instructions 2019-06-26 09:46:05 -07:00
Olaoluwa Osuntokun
ca26413891
loop: bump version to v0.2.0-alpha 2019-06-26 01:17:42 -07:00
Olaoluwa Osuntokun
88ee52093a
Merge pull request #64 from joostjager/remove-mainnet-block
loopd: remove mainnet loop in block
2019-06-26 01:05:18 -07:00
Joost Jager
13ab5a219f loopd: remove mainnet loop in block 2019-06-25 11:43:23 +02:00
Olaoluwa Osuntokun
1dd924c392
Merge pull request #61 from joostjager/update-readme
README: Add routerrpc sub-server tag
2019-06-12 21:47:07 +02:00
Joost Jager
46708cadbb README: Add routerrpc sub-server tag 2019-06-12 13:36:37 +02:00
Olaoluwa Osuntokun
9de7b949dd
Merge pull request #59 from valentinewallace/basic-client-mac-path
lndclient/basic_client: pass full macaroon path, not just directory.
2019-06-07 12:51:36 +02:00
Valentine Wallace
8311d70cbf lndclient/basic_client: add functional optional args to NewBasicClient. 2019-06-06 15:57:25 -07:00
Olaoluwa Osuntokun
31451f62f8
Merge pull request #60 from joostjager/reliable-payment
lndclient: add routerrpc
2019-06-06 17:16:05 +02: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
Alex Bosworth
fd5020b53a
Merge pull request #58 from alexbosworth/v0.1.3
version: bump version to 0.1.3
2019-05-31 09:57:41 -07:00
Alex Bosworth
389e7c6bf0
bump version 2019-05-23 13:09:27 -07:00
Olaoluwa Osuntokun
86264db1a3
Merge pull request #56 from valentinewallace/increase-lightning-grpc-block-size
lndclient: increase lightning gRPC block size to 50MB
2019-05-21 17:13:58 -07:00
Valentine Wallace
ee5f1852d6
lndclient: increase lightning gRPC block size to 50MB 2019-05-21 17:04:49 -07:00
Olaoluwa Osuntokun
7fd2f1176e
Merge pull request #55 from joostjager/report-cost
multi: persist swap cost and report over rpc
2019-05-21 16:35:58 -07:00
Joost Jager
6aa9071c4d
looprpc+loop: report swap cost over rpc 2019-05-20 13:57:20 +02:00
Joost Jager
6efa62347b
multi: store swap cost in database 2019-05-20 13:57:18 +02:00
Joost Jager
24a1b8d642
loopdb: initialize new database with current version 2019-05-20 13:57:15 +02:00
Joost Jager
7d6ed06d5c
loopdb: enable logging
Previous code in log.go assumed there would by sub system level
enable/disable for loop. This is not yet in place, so converting to same
style as used in the lndclient package.
2019-05-20 13:57:12 +02:00
Joost Jager
1b306ad425
loopdb: replace swap state enum by state data object
This commits lays down the foundation in the database for adding more
persistent state data to swaps.
2019-05-20 13:57:09 +02:00
Geoff Taylor
793fb4d90e loop: introduce docker integration (#46)
* Introduced docker integration
* Added Dockerfile to build loopd and loop with no dependencies.
* Added instructions to build and run docker image.

* Fixed documentation on mapping of ~/.lnd
* Would have caused problems because ~/.loop wasn't mapped
* Now map entire home directory

* Updated DOCKER.md example to just map ~/.lnd and ~/.loop.
* Removed mapping of home directory - one of the benefits of docker is being explicit about the resources the container uses so I felt bad mapping the entire home directory when only two known folders were used.
2019-05-17 18:40:43 -07:00
Olaoluwa Osuntokun
eece3adad1
Merge pull request #52 from alexbosworth/master
version: bump for patch release
2019-05-03 15:28:59 -07:00
Olaoluwa Osuntokun
7318698917
Merge pull request #51 from joostjager/swapserver-address
loopd: use proper default swap server address
2019-05-03 15:28:29 -07:00
Alex Bosworth
7687a2794c
version: bump for patch release 2019-05-03 12:29:02 -07:00
Joost Jager
753429547d
swap: fix htlc address generation
This commit fixes the generation of the htlc address. This bug didn't
affect the swap execution, because the htlc address is only used for
display to the user/caller.
2019-05-03 10:52:23 +02:00
Joost Jager
ca3cfc1431
loopd: use proper default swap server address
This commit fixes the bug that caused running loopd on testnet to
connect to the mainnet swap server.
2019-05-03 10:17:26 +02: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
f1f72bb2d1
cmd/loopd: only replace testnet swapserver if not already set 2019-04-24 18:26:45 -07:00
Olaoluwa Osuntokun
893954e69b
Merge pull request #47 from alexbosworth/decrease-max-routing-fee
cmd/loop: reduce off-chain payment max-fee
2019-04-22 15:28:54 -07:00
Olaoluwa Osuntokun
c557234969
Merge pull request #45 from Roasbeef/macaroon-pouch
lndclient+cmd/loopd: use unique macaroon per sub-server to avoid users having to delete admin.macaroon
2019-04-22 15:27:29 -07:00
Olaoluwa Osuntokun
6037d0105f
cmd/loopd: rename MacaroonPath to MacaroonDir 2019-04-18 16:11:33 -07:00
Olaoluwa Osuntokun
74d381fa63
build: go mod tidy 2019-04-18 16:11:30 -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
Alex Bosworth
cdd5a7eea0
cmd/loop: reduce off-chain payment max-fee 2019-04-18 15:29:39 -07:00
Olaoluwa Osuntokun
3d0d73348d
loop: bump version to v0.1.1-alpha 2019-04-17 15:06:03 -07:00
Olaoluwa Osuntokun
34d96cb1dc
Merge pull request #44 from lightninglabs/alexbosworth-patch-6
Update documentation for 0.6.0 release
2019-04-16 17:11:34 -07:00