Commit graph

403 commits

Author SHA1 Message Date
Oliver Gugger
c2e513ecd0
loopd: remove short flags to avoid collision 2020-05-28 12:34:42 +02:00
Oliver Gugger
3a38f8faa4
cmd/loopd: add tlsCertPath and macaroonPath flags 2020-05-28 12:34:41 +02:00
Oliver Gugger
74b3580e01
loopd+cmd/loopd: rename main Start function to Run 2020-05-28 12:34:41 +02:00
Oliver Gugger
774a44fac1
loopd: add StartAsSubserver method and started flag 2020-05-28 12:34:38 +02:00
Oliver Gugger
506d0c2257
loopd: refactor into Start/Stop methods 2020-05-28 12:34:04 +02:00
Oliver Gugger
215e5b99d6
loopd: extract daemon into struct 2020-05-25 13:16:34 +02:00
Oliver Gugger
e696a38ec8
loopd: export Config struct 2020-05-25 13:16:33 +02:00
Oliver Gugger
5f70a05463
loopd: export DefaultConfig 2020-05-25 13:16:33 +02:00
Joost Jager
bdfd382dec
Merge pull request #209 from joostjager/fix-loop-cli-parse
cmd/loop: fix channel parsing
2020-05-25 08:56:25 +02:00
Joost Jager
a3924cfbc4
cmd/loop: fix channel parsing 2020-05-25 08:43:38 +02:00
András Bánki-Horváth
bd2d39bd10
Merge pull request #203 from bhandras/lndclient_extension
lndclient: extend LightningClient with ListChannels and RouterClient with keysend
2020-05-21 20:09:02 +02:00
Andras Banki-Horvath
cf9c3748c3 lndclient: add keysend ability to RouterClient 2020-05-21 20:04:46 +02:00
Andras Banki-Horvath
4d3771430a lndclient: add ListChannels to LightningClient 2020-05-21 20:04:46 +02:00
Joost Jager
3316c4beed
Merge pull request #205 from joostjager/channel-set
loop out: allow outbound channel set for multi-loops
2020-05-21 13:06:52 +02:00
Joost Jager
23a1e33dfc
lndclient: document SendPaymentRequest fields 2020-05-21 11:22:08 +02:00
Joost Jager
ccec719423
looprpc: add outgoing channel set restriction
Expose the new channel set restriction on the loopd client rpc.
2020-05-21 11:22:06 +02:00
Joost Jager
8c544bf2ba
loopdb: store outgoing channel set
Upgrade the database schema to allow for multiple outgoing channels.
This is implemented as an on-the-fly migration leaving the old key in
place.
2020-05-21 11:22:04 +02:00
Joost Jager
044c1c12dd
loopdb/test: add database dump and restore tools 2020-05-21 11:22:02 +02:00
Joost Jager
bd6e3f405a
loopdb/test: parameterize loop out test 2020-05-21 11:22:00 +02:00
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.
2020-05-21 11:21:58 +02:00
Joost Jager
503c83c29f
loopdb: unroll shared fetch logic
Split the fetch logic so that it is easier to add loop type-specific
serialization.
2020-05-21 11:21:56 +02:00
Joost Jager
9927139dd3
loopdb: extract update deserialization
Preparation to prevent code duplication in future refactoring.
2020-05-21 11:13:52 +02:00
Joost Jager
ba5577748b
loopdb: unroll shared creation logic
Another step in the separation of loop in and loop out. This prepares
for a new loop out-specific key to be added.
2020-05-21 11:13:50 +02:00
Joost Jager
c6697da90b
loopout/test: test payment parameters 2020-05-21 11:13:48 +02:00
Carla Kirk-Cohen
3f10407e9c
Merge pull request #208 from carlaKC/lndclient-lookupinvoice
lndclient: add lookup invoice
2020-05-21 09:06:35 +02:00
carla
a57e34c71f
lndclient: add lookup invoice function to client interface 2020-05-21 08:59:54 +02:00
carla
8b1cdd414c
test/test: add lookup invoice to mock lightning client
Track the invoices we create with AddInvoice so that we can
realistically lookup and settle with the mock.
2020-05-21 08:59:52 +02:00
carla
87a0a0c588
lndclient: add lookup invoice function to client implementation 2020-05-21 08:59:21 +02:00
Joost Jager
dae3165b9b
Merge pull request #206 from joostjager/doc-api-support
readme: document api support level
2020-05-20 14:12:46 +02:00
Joost Jager
d28492fa53
readme: document api support level 2020-05-19 12:37:11 +02:00
Joost Jager
2ec580c92b
Merge pull request #201 from joostjager/improve-release-script
release: add tag and version verification to release script
2020-05-14 12:08:39 +02:00
Joost Jager
6ac3d39d19
release: add tag and version verification to release script 2020-05-14 11:33:39 +02:00
Joost Jager
2ddbe23418
build: mark build as default target 2020-05-14 11:33:37 +02:00
Joost Jager
9fba8eb8d8
Merge pull request #200 from joostjager/bump-version-0.6.2-beta
version: bump to v0.6.2-beta
2020-05-12 21:24:24 +02:00
Joost Jager
f6750d67bc
version: bump to v0.6.2-beta
We can't remove the previous tag, so need to bump again unfortunately.
2020-05-12 21:14:32 +02:00
Joost Jager
06267b7442
Merge pull request #199 from joostjager/bump-version-0.6.1-beta
version: bump version to 0.6.1-beta
2020-05-12 21:06:23 +02:00
Joost Jager
2d47514306
version: bump version to 0.6.1-beta 2020-05-12 21:00:19 +02:00
Joost Jager
d01c33cbb6
Merge pull request #198 from bhandras/segwit_fix
loopin: fix htlc address in LoopIn SwapResponse
2020-05-12 19:21:44 +02:00
Andras Banki-Horvath
936bb851f2 loopin: fix htlc address in LoopIn SwapResponse 2020-05-12 18:51:42 +02:00
Joost Jager
f36d5a79f7
Merge pull request #196 from joostjager/fix-multi-loop-out
loopd: fix setting of max parts
2020-05-12 10:13:55 +02:00
Joost Jager
27a2b1a775
loopd: fix setting of max parts 2020-05-12 09:34:57 +02:00
Joost Jager
33a049f8e9
Merge pull request #184 from bhandras/native-segwit
support for native segwit loop-in
2020-05-05 17:08:05 +02:00
Andras Banki-Horvath
c6e3829acd looprpc: bump protocol version 2020-05-05 15:49:06 +02:00
Andras Banki-Horvath
5215222ced cmd: print both htlc addresses when monitoring a loop-in 2020-05-05 15:49:06 +02:00
Andras Banki-Horvath
0aa978bd09 loopin: modify internally published htlc to use p2wsh 2020-05-05 15:49:06 +02:00
Andras Banki-Horvath
f0aff9b7bd looprpc+loopin: support for native segwit htlcs
This commit extends SwapResponse and SwapStatus with np2wsh and p2wsh
htlc output addresses to support both nested and native segwit htlcs
in loop-in.

Furthermore the commit adds support for native segwith loop-in htlcs.
When the htlc is paid internally, as of this commit we'll use NP2WSH,
otherwise users are free to select whether to pay the NP2WSH or the
P2WSH htlc.
2020-05-05 15:49:05 +02:00
Andras Banki-Horvath
62f654eef1 client: make ListSwaps thread safe 2020-05-04 23:18:15 +02:00
Andras Banki-Horvath
60661504a5 htlc: add string representation for HtlcOutputType enum 2020-05-04 23:18:15 +02:00
Andras Banki-Horvath
87cc5571ef general: add ExternalHtlc to SwapInfo and add comments 2020-05-04 23:18:15 +02:00
Andras Banki-Horvath
b2b0bad951 loopin+loopout: move htlc out of swapKit
This commit moves htlc out of swapkit in preparation of adding separate
p2wsh and np2wsh htlcs to loop-in swaps.
2020-05-04 23:18:14 +02:00