Commit Graph

33 Commits (master)

Author SHA1 Message Date
George Tsagkarelis 26e239c2c7
loop+test: enhance epoch subscription for multiple subscribers 2 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
Harsha Goli 7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 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
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
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
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 e016d2ebf4
lndclient: add forwarding history call 4 years ago
carla c1a9889e4d
lndclient: add closed channels to lnd client 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 a05e46697d
test: assert raw output signing requests 4 years ago
Wilmer Paulino 1ea58ad3d6
Merge pull request #125 from wpaulino/lndclient-listtransactions
lndclient: expose ListTransactions as part of LightningClient
4 years ago
Wilmer Paulino 43579b017f
lndclient: expose ListTransactions as part of LightningClient 4 years ago
Oliver Gugger 304c8f580f
lndclient: expose VerifyMessage RPC 4 years ago
Oliver Gugger 2a7c5182a4
lndclient: expose SignMessage RPC 4 years ago
Oliver Gugger 162b2589e0
lndclient: return node URIs from GetInfo call 4 years ago
Wilmer Paulino 52eaeeab77
build: update lnd version to current master
Projects that use a later version of lnd than loop, but also depend on
loop itself would run into the following build error:

github.com/lightninglabs/loop/lndclient
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:30:11: undefined: lnwallet.SatPerKWeight
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:32:54: undefined: lnwallet.SatPerKWeight
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:144:33: undefined: lnwallet.SatPerKWeight
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:176:2: undefined: lnwallet.SatPerKWeight
../../go/pkg/mod/github.com/lightninglabs/loop@v0.2.3-alpha/lndclient/walletkit_client.go:189:9: undefined: lnwallet.SatPerKWeight
4 years ago
Wilmer Paulino 09029bfdec
test: allow custom fee estimates 5 years ago
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.
5 years ago
Joost Jager 3e960b8b54
multi: loop in swap 5 years ago
Olaoluwa Osuntokun a770e3d7c1
loop: update all import paths to public repo 5 years ago
Joost Jager 21fcd8d94e
Lightning Loop initial version 5 years ago