Commit Graph

559 Commits (c8666caf2044534a0d7d00fa10650e1fba2355ab)
 

Author SHA1 Message Date
Andras Banki-Horvath 0aa978bd09 loopin: modify internally published htlc to use p2wsh 4 years ago
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.
4 years ago
Andras Banki-Horvath 62f654eef1 client: make ListSwaps thread safe 4 years ago
Andras Banki-Horvath 60661504a5 htlc: add string representation for HtlcOutputType enum 4 years ago
Andras Banki-Horvath 87cc5571ef general: add ExternalHtlc to SwapInfo and add comments 4 years ago
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.
4 years ago
Andras Banki-Horvath 7a44eec36f loopin: refactor LoopIn to return struct instead of tuple 4 years ago
Carla Kirk-Cohen b070a4fb07
Merge pull request #192 from carlaKC/travis-depth
traivs: set depth to false to clone whole repo
4 years ago
carla 0c01e95433
traivs: set depth to false to clone whole repo
Overwrite travis's default of only cloning the last 50 commands so
that travis can find the reference point for our linter.

As in lightningnetwork/lnd/pull/4026
4 years ago
Alex Bosworth ac096132b0
Merge pull request #188 from lightninglabs/v0.6.0-beta
version: bump version to 0.6.0-beta
4 years ago
Alex Bosworth 659ad8bdd9
version: bump version to 0.6.0-beta
Increment version number
4 years ago
Joost Jager 350b40fa5b
Merge pull request #187 from joostjager/routerclient-failure-reason
lndclient: expose failure reason
4 years ago
Joost Jager c061206406
lndclient: expose failure reason 4 years ago
Joost Jager b054e84eb2
Merge pull request #186 from joostjager/report-version
multi: report protocol version
4 years ago
Joost Jager 92730e0eaf
multi: report protocol version 4 years ago
Joost Jager a15db0a576
Merge pull request #185 from joostjager/config-max-parts
loopd: make maximum number of payment parts configurable
4 years ago
Joost Jager 12ae3d6a40
loopd: make maximum number of payment parts configurable 4 years ago
Joost Jager 5588876b48
loopd: extract client configuration 4 years ago
Joost Jager 65375723b4
lndclient: upgrade to lnd v0.10.0-beta-rc5 4 years ago
Joost Jager 7cb914927f
looprpc: fix formatting 4 years ago
Oliver Gugger e99202ced5
Merge pull request #181 from guggero/lnd-version-aware
Make loop aware of lnd's version
4 years ago
Oliver Gugger e7f41fa370
README: add version compatibility table 4 years ago
Oliver Gugger ad4e1e971e
loopd: check lnd version and subservers 4 years ago
Oliver Gugger 3da09aac0e
client: use cached info to log connected node 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 899d04470b
lndclient: add readonly macaroon to pouch 4 years ago
Oliver Gugger f6a941244e
lndclient: use readonly macaroon for startup check 4 years ago
Joost Jager 23d646ea6a
Merge pull request #183 from joostjager/routerrpc-v2
lndclient: move to V2 payment methods
4 years ago
Joost Jager e0b987f403
lndclient: move to V2 payment methods
Otherwise mpp isn't supported.
4 years ago
Oliver Gugger bf6f6b31f4
client: fix some comments 4 years ago
Oliver Gugger 4f1ecd9344
Merge pull request #180 from guggero/docs-update
cmd/loop+README: explain fees and optimize fee display
4 years ago
Oliver Gugger 24066bb1dd
README: describe fee structure 4 years ago
Oliver Gugger 3ea07f167f
cmd/loop: clarify some flag descriptions 4 years ago
Oliver Gugger 3b630667a5
cmd/loop: improve displayed limits 4 years ago
Joost Jager 4a714e0c96
Merge pull request #178 from joostjager/loopout-routerrpc
loopout: allow multi-loop
4 years ago
Carla Kirk-Cohen 97403b9c1e
Merge pull request #179 from carlaKC/loopin-addconftarget
loopin: allow user to configure confirmation target
4 years ago
Carla Kirk-Cohen a90971a697
Merge pull request #175 from bhandras/mock_update
test: followup update chainnotifier mock to fwd notifications for matching txs
4 years ago
carla 5a5ac94661
README: add conf_target to loop in readme section 4 years ago
carla fc99c8b320
multi: add confirmation target to loop in 4 years ago
carla f726fc2bc8
loopd: add missing zero case to validateConfTarget
Update validate function to return default target for zero value
confirmation targets, as indicated by the comment. This change
introduces a behaviour change for direct rpc calls to loopd (ie,
those not made by the loop cli tool). Previously, these calls
would fail and indicate that the conf target must be > 2, now
they will succeed with the default conf target. The loop cli
tool is unaffected because we already set the default value.

When clients upgrade from a previous version of loopd which did
not have this check, preexisting loops will be unaffected, because
loop ins had the default of 6 confirmations set, and loop outs with
<2 conf target would not have been created.
4 years ago
carla 1f5aeff45f
multi: unify default sweep/htlc conf targets
Create a HtlcConfTarget which is used as a default for quote
and loop in. Update loop out quote to use the existing var
rather than just 6 inline.
4 years ago
Joost Jager 6acd76e237
loopout: allow multi-loop 4 years ago
Joost Jager 710ae77750
loopout: log in-flight htlc status 4 years ago
Joost Jager 4039ba9b69
loopout: use routerrpc to send payments 4 years ago
Andras Banki-Horvath 235e1bb9b8 test: followup update chainnotifier mock to fwd notifications for matching txs
This is the remainder of the previous commit which was left out from the
original PR.
4 years ago
carla e36c5a45d3
loop: fix loop in quote conf target flag usage field 4 years ago
carla 41550a9c4b
makefile+travis: add install and build commands
Build executables are suffixed with 'debug' because we cannot
create a loopd executable in the root repo dir, since there is an
already existing loopd executable. Add build to travis.
4 years ago