Commit Graph

547 Commits (a9f8682689f4259a9765f3974b563b2a51bdcb55)
 

Author SHA1 Message Date
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.
5 years ago
Olaoluwa Osuntokun 56ab811f62
lndclient: modify basic_client.go to use the mac dir rather than path 5 years ago
Olaoluwa Osuntokun 52dbc03dda
lndclient: add NewBasicClient function 5 years ago
Olaoluwa Osuntokun f1f72bb2d1
cmd/loopd: only replace testnet swapserver if not already set 5 years ago
Olaoluwa Osuntokun 893954e69b
Merge pull request #47 from alexbosworth/decrease-max-routing-fee
cmd/loop: reduce off-chain payment max-fee
5 years ago
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
5 years ago
Olaoluwa Osuntokun 6037d0105f
cmd/loopd: rename MacaroonPath to MacaroonDir 5 years ago
Olaoluwa Osuntokun 74d381fa63
build: go mod tidy 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
Alex Bosworth cdd5a7eea0
cmd/loop: reduce off-chain payment max-fee 5 years ago
Olaoluwa Osuntokun 3d0d73348d
loop: bump version to v0.1.1-alpha 5 years ago
Olaoluwa Osuntokun 34d96cb1dc
Merge pull request #44 from lightninglabs/alexbosworth-patch-6
Update documentation for 0.6.0 release
5 years ago
Olaoluwa Osuntokun 6684727952
Merge pull request #41 from joostjager/monitor-crash
loopd: fix nil ptr derefence for monitor
5 years ago
Olaoluwa Osuntokun 806db5bbe1
Merge pull request #39 from lightninglabs/alexbosworth-patch-5
Update to reflect testnet is supported
5 years ago
Alex Bosworth 4d77999f68
Update documentation for 0.6.0 release
Add a note that you can use 0.6.0 to use Loop
5 years ago
Joost Jager 7f9ab312fb
loopd: fix nil ptr derefence for monitor
Reason for the crash was an unpopulated HtlcAddress field.
5 years ago
Alex Bosworth 8aa4b2643e
Update to reflect testnet is supported
Modify description of Loop In to indicate it is supported on testnet
5 years ago
Olaoluwa Osuntokun e8005d095a
Merge pull request #34 from joostjager/loopin-merge
Loop In
5 years ago
Joost Jager 30c7d71c57
use np2wsh for loop in htlc 5 years ago
Joost Jager e765baa1f9
loopd: check loop in timeout already before a new block comes in 5 years ago
Joost Jager b5d2fb3894
loopd: add loop in state InvoiceSettled 5 years ago
Joost Jager a7f4feb9ea
README: add invoicesrpc tag 5 years ago
Joost Jager f7676c3489
loop: show correct swap type 5 years ago
Joost Jager f7f9751a1a
loop: hide loop in channel selection flag 5 years ago
Joost Jager 2e48ead6d6
loopd: loop in from external address
Allow user to specify that htlc will be published by an external source.
In that case no internal htlc tx will be published.

To facilitate sending to the htlc address, the swap initiation response
is extended with that address.
5 years ago
Joost Jager 8b2da64b0a
loopd: disable mainnet loop in 5 years ago
Joost Jager 3e960b8b54
multi: loop in swap 5 years ago
Joost Jager 6a0a9556a0
loopdb: add loop in
This commit adds the required code to persist loop in swaps. It also
introduces the file loop.go to which shared code is moved.

Sharing of contract serialization/deserialization code has been
reverted. The prepay fields do not apply to loop in, but were part of
the shared contract struct. Without also adding a migration, it wouldn't
be possible to keep the shared code.

In general it is probably more flexible to keep the contract
serialization code separated between in and out swaps.
5 years ago
Joost Jager e81298ce3e
loopdb: move code to shared code file 5 years ago
Olaoluwa Osuntokun 79430a827e
Merge pull request #31 from joostjager/decodeaddress
multi: always supply chain params when decoding addresses
5 years ago
Joost Jager 9a1b60b4be
multi: always supply chain params when decoding addresses 5 years ago
Olaoluwa Osuntokun ec40647147
Merge pull request #25 from Roasbeef/testnet-server
cmd/loopd: point to testnet loop server for testnet mode
5 years ago
Olaoluwa Osuntokun e14e7e94b2
Merge pull request #26 from alexbosworth/keyword-amt-argument
cmd/loop: add amount as a discrete argument
5 years ago
Olaoluwa Osuntokun b9b52c9a94
README: add instructions for testnet mode 5 years ago
Olaoluwa Osuntokun c0a1b4e2ac
cmd/loopd: point to testnet loop server for testnet mode
Fixes #20.
5 years ago
Olaoluwa Osuntokun ba6994e3d3
Merge pull request #29 from grunch/change-global-option-param-name
Change loopd global option parameter to rpcserver
5 years ago
Francisco Calderón c9e482e58f
Change loopd global option parameter to rpcserver 5 years ago
Alex Bosworth dd357ddb22
cmd/loop: add amount as a discrete argument 5 years ago
Alex Bosworth 769c69e512
Merge pull request #23 from conscott/install_for_dummies
README: Bold text lnd install instruction for dummies
5 years ago
conscott 3acbd72ccd Bold text lnd install instruction for dummies 5 years ago
Alex Bosworth ffde70f0eb
Merge pull request #22 from joostjager/fix-loop-arg
loop: fix cmd line arg parsing bug
5 years ago
Joost Jager 4c910f28b0
loop: fix cmd line arg parsing bug 5 years ago
Olaoluwa Osuntokun e4b4b9461f
Merge pull request #18 from lightninglabs/phrasing
README: Add loop out name
5 years ago
Olaoluwa Osuntokun b744afaa6f
cmd/loop: add new key word argument for optional destination sweep address 5 years ago
Olaoluwa Osuntokun f089ff3484
cmd/loop: use loop.Version() for loop cli version 5 years ago
Olaoluwa Osuntokun fff001fd2e
cmd/loopd: show version on start up, add new --version flag 5 years ago
Olaoluwa Osuntokun 75b6230e4a
loop: add new version file, pin at 0.1-alpha 5 years ago