Commit Graph

66 Commits (master)

Author SHA1 Message Date
Andras Banki-Horvath 12f7956fd8
build: bump lnd dependency to v0.17.4-beta 2 months ago
George Tsagkarelis 26e239c2c7
loop+test: enhance epoch subscription for multiple subscribers 3 months ago
shuoer86 8421ae6ca4
fix typo test/chainnotifier_mock.go 3 months ago
Oliver Gugger 08026dab93
multi: update linter, fix issues 7 months ago
Oliver Gugger bac1416636
multi: bump lnd version to v0.17.0-beta 7 months ago
Andras Banki-Horvath 4d34eb97ce
build: fixup new linter issues 1 year ago
Andras Banki-Horvath a7451622e5
mod: bump LND and lndclient to include musig2 1.0rc2 changes
This commit bumps LND and lndclient to make it possible to upgrade
taproot HTLC construction with a MuSig2 version. This is required to
support both old (MuSig2 0.4) and new (MuSig2 1.0) clients.
1 year ago
sputn1ck 4baf88c414
multi: fix linter issues
This commit fixes outstanding linter issues, that we're not found by
running `make lint` locally. The linter issues were found by running
`docker run -v $(pwd):/build loop-tools golangci-lint run --whole-files`

I added the `revive` to the excludes as it would be to much of a
refactor and IMO seems unneccesary. E.g.
`interface.go:222:6: exported: type name will be used as
loop.LoopInTerms by other packages, and that stutters; consider
 calling this InTerms (revive)`. I think `loop.LoopInTerms` is fine.
1 year ago
Andras Banki-Horvath 049b17ff96
misc: refactor loop tests to use require where possible 1 year ago
Andras Banki-Horvath 977b72019d
loopd: bump minimum lnd version to v0.15.1-beta
In this commit we bump the minimum LND version required to run loopd to
v0.15.1-beta in order to ensure that the underlying chain backend
supports taproot (https://github.com/lightningnetwork/lnd/pull/6798)
2 years ago
sputn1ck 0f924b36cd
multi: bump lndclient and lnd version to latest
Co-authored-by: Oliver Gugger <gugger@gmail.com>
2 years ago
Andras Banki-Horvath 5d7b0abdf5
loopout: add unit test for the MuSig2 sweep case 2 years ago
Andras Banki-Horvath 5c04b8db05
test: add richer implementation to MuSig2CreateSession 2 years ago
Oliver Gugger d5952f1202
multi: bump all dependency to use lnd 0.15.0-beta.rc4
This commit bumps all dependencies to be in line with what's required
for the current release candidate of lnd 0.15.0-beta.
2 years ago
sputn1ck a1271fee40
multi: fix linter issues 2 years ago
Harsha Goli 7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 2 years ago
Andras Banki-Horvath dc9bc9e976
routing: integrate forced MC import to the low/high plugin 2 years ago
Andras Banki-Horvath 01bf94ad11
tests: add unit tests for the low/high routing plugin 2 years ago
Harsha Goli 9db43a4dbd
loop: Reimplement SelectHopHints from lnd
In this commit, instead of importing SelectHopHints from lnd, we chose
to reimplement the functionality here, for the purpose of adding hop
hints in case the user informs us the client node is considered private.

In the future, we should modify the origin SelectHopHints to take
closures for all it's data sources, so we can use it's logic external
2 years ago
Oliver Gugger 2c6e035235
multi: bump lnd compile time dependency to v0.14.0-beta.rc1 3 years ago
carla cca5926263
multi: bump lndclient to v0.12.0-13
To allow code with more up-to-date dependencies to import loop, we
bump our lndclient version. The minimum loop version remains 11.1
since we're not using any new apis.
3 years ago
carla ab9a662758
loop/test: simplify preimage push test to be less dependent on height
Our preimage push test previously relied on our dropping down to the
default sweep conf target to mock a drop in chain fees. This makes
our test dependent on height, which makes changes to our sweep logic
regarding when we reveal our preimage break this test. In this commit
that logic is replaced with simply locking our mock and updating fees
on the fly.
3 years ago
carla 4911130671
loopin: store loop in on-chain fees 3 years ago
carla 6c2d88b3a5
multi: bump lndclient to version with wait for unlock 3 years ago
Oliver Gugger 38ddbfb45d
mod+loopin+loopout: update lndclient, add labels to TXs
We update to the latest lndclient that now requires a label when
publishing an on-chain transaction. Instead of just adding an empty
string, we use the proper labels added in a previous commit.
4 years ago
carla 692620d367
liquidity: add fee budget to swap suggestions
Add a dated fee budget to our swap suggestions. This budget only applies
to automatically dispatched swaps (which will be added in later
commits). We choose to apply the fee budget to our suggestions so that
they perfectly replicate what the autolooper would do. The budget has a
start date so that it can be refreshed once it has been used up over a
period (rather than having to endlessly increase it).
4 years ago
Joost Jager c8666caf20
loopin: mpp pre-swap probe 4 years ago
carla 435238ac03
mutli: bump lndclient version
We need the newer version of lndclient to get our synced to chain
state. This requires changes to our test mock, so it is separated
into a different commit. Since lndclient is expanding to be used in
projects other than loop, the client interface is embedded in our
mock rather than implementing functions we do not need. Functions that
we already use in tests are updated accordingly.

Note that while this commit bumps us to a version of lndclient that
defaults to requiring lnd 0.11, we do not bump our required version
yet because we are not using any new endpoints.
4 years ago
carla 1877b7f08b
multi: store loop out htlc confirmations on disk
To allow users to specify differing confirmation targets, we store the
swap conf target per-swap. This makes us restart safe, so we do not
forget confirmation values for swaps that are in flight when we restart.
4 years ago
Joost Jager e22524a262
loopout: register for confirmation using htlc tx hash 4 years ago
Joost Jager 0c9fcd790e
lndclient: move to github.com/lightninglabs/lndclient 4 years ago
carla fbb1a3b204
lndclient: add list sweeps to wallet cilent 4 years ago
carla c76f2c4cf1
lndclient: update listTransactions to return full transaction 4 years ago
carla 475c7f29f1
lndclient: add listpayments endpoint 4 years ago
carla 5ca018613b
lndclient: add listinvoices to client 4 years ago
carla e016d2ebf4
lndclient: add forwarding history call 4 years ago
carla c1a9889e4d
lndclient: add closed channels to lnd client 4 years ago
Wilmer Paulino 2c13d53bcb
lndclient: expose basic coin selection RPCs for WalletKitClient 4 years ago
carla 65c847674d
multi: add preimage push to loop out after sweep attempt
Once we have revealed our preimage to the world with a sweep attempt,
we can safely push our preimage to the server to speed up on chain
claim.

Rather than rely on the server, we use the state of our invoice in lnd
to determine whether we should continue trying to push the preimage to
the server.
4 years ago
Andras Banki-Horvath 4d3771430a lndclient: add ListChannels to LightningClient 4 years ago
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.
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
Joost Jager 4a714e0c96
Merge pull request #178 from joostjager/loopout-routerrpc
loopout: allow multi-loop
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
Andras Banki-Horvath 95273c1cf8 test: update chainnotifier mock to fwd notifications for matching txs 4 years ago
Wilmer Paulino 0b053e6868
lndclient: expose ComputeInputScript in SignerClient 4 years ago
Wilmer Paulino a5f56342df
lndclient: expose retrieval of channel backups through LightningClient 4 years ago