2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-16 00:12:52 +00:00
Commit Graph

45 Commits

Author SHA1 Message Date
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.
2021-05-12 14:00:44 +02:00
carla
4911130671
loopin: store loop in on-chain fees 2021-03-03 12:49:59 +02:00
carla
6c2d88b3a5
multi: bump lndclient to version with wait for unlock 2021-01-14 09:13:01 +02:00
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.
2020-10-15 10:40:12 +02:00
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).
2020-10-12 13:34:54 +02:00
Joost Jager
c8666caf20
loopin: mpp pre-swap probe 2020-09-17 13:24:54 +02:00
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.
2020-08-14 09:25:39 +02:00
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.
2020-08-04 20:28:06 +02:00
Joost Jager
e22524a262
loopout: register for confirmation using htlc tx hash 2020-06-24 15:28:12 +02:00
Joost Jager
0c9fcd790e
lndclient: move to github.com/lightninglabs/lndclient 2020-06-18 14:27:52 +02:00
carla
fbb1a3b204
lndclient: add list sweeps to wallet cilent 2020-06-17 08:45:03 +02:00
carla
c76f2c4cf1
lndclient: update listTransactions to return full transaction 2020-06-17 08:45:01 +02:00
carla
475c7f29f1
lndclient: add listpayments endpoint 2020-06-17 08:44:59 +02:00
carla
5ca018613b
lndclient: add listinvoices to client 2020-06-17 08:44:57 +02:00
carla
e016d2ebf4
lndclient: add forwarding history call 2020-06-17 08:44:55 +02:00
carla
c1a9889e4d
lndclient: add closed channels to lnd client 2020-06-17 08:44:55 +02:00
Wilmer Paulino
2c13d53bcb
lndclient: expose basic coin selection RPCs for WalletKitClient 2020-06-15 12:57:33 -07:00
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.
2020-06-08 12:54:08 +02:00
Andras Banki-Horvath
4d3771430a lndclient: add ListChannels to LightningClient 2020-05-21 20:04:46 +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
Oliver Gugger
8848d30fb3
lndclient: check and cache version compatibility on connect 2020-04-24 10:04:39 +02:00
Oliver Gugger
211586e614
lndclient: cache node info on connect 2020-04-24 10:03:34 +02:00
Oliver Gugger
44d05f284b
lndclient+test: add versioner client and mock 2020-04-24 09:59:05 +02:00
Joost Jager
4a714e0c96
Merge pull request #178 from joostjager/loopout-routerrpc
loopout: allow multi-loop
2020-04-20 10:13:58 +02:00
Joost Jager
4039ba9b69
loopout: use routerrpc to send payments 2020-04-16 16:40:35 +02:00
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.
2020-04-15 14:43:03 +02:00
Andras Banki-Horvath
95273c1cf8 test: update chainnotifier mock to fwd notifications for matching txs 2020-04-06 22:00:02 +02:00
Wilmer Paulino
0b053e6868
lndclient: expose ComputeInputScript in SignerClient 2020-02-12 17:01:45 -08:00
Wilmer Paulino
a5f56342df
lndclient: expose retrieval of channel backups through LightningClient 2020-02-10 11:50:34 -08:00
Wilmer Paulino
3e2a7240d7
lndclient: expose DeriveSharedKey for SignerClient 2020-01-21 16:40:56 -08:00
Joost Jager
a05e46697d
test: assert raw output signing requests 2020-01-15 16:42:49 +01:00
Wilmer Paulino
1ea58ad3d6
Merge pull request #125 from wpaulino/lndclient-listtransactions
lndclient: expose ListTransactions as part of LightningClient
2019-12-12 13:39:24 -08:00
Wilmer Paulino
43579b017f
lndclient: expose ListTransactions as part of LightningClient 2019-12-12 13:33:06 -08:00
Oliver Gugger
304c8f580f
lndclient: expose VerifyMessage RPC 2019-12-12 20:52:53 +01:00
Oliver Gugger
2a7c5182a4
lndclient: expose SignMessage RPC 2019-12-12 09:15:34 +01:00
Oliver Gugger
162b2589e0
lndclient: return node URIs from GetInfo call 2019-12-12 08:50:41 +01:00
Oliver Gugger
fc44ee8785
lndclient: fix Value/ValueMsat conversion problem 2019-12-03 10:42:01 +01:00
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
2019-11-15 16:16:30 -08:00
Oliver Gugger
36838cf7f4
multi: fix most obvious linter errors 2019-10-09 14:35:41 +02:00
Wilmer Paulino
09029bfdec
test: allow custom fee estimates 2019-10-01 11:21:17 -04:00
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.
2019-06-06 13:57:49 +02:00
Joost Jager
3e960b8b54
multi: loop in swap 2019-03-28 11:56:49 +01:00
Olaoluwa Osuntokun
908d82acdb
loop: extract code from client package into new loop primary package 2019-03-06 20:34:01 -08:00
Olaoluwa Osuntokun
a770e3d7c1
loop: update all import paths to public repo 2019-03-06 15:29:49 -08:00
Joost Jager
21fcd8d94e
Lightning Loop initial version 2019-03-06 21:30:34 +01:00