2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-04 06:00:21 +00:00
Commit Graph

615 Commits

Author SHA1 Message Date
Oliver Gugger
785acf74ca
looprpc: unify formatting 2020-11-06 10:42:59 +01:00
Oliver Gugger
385fed89b5
make: fix commit ldflag 2020-11-06 10:42:57 +01:00
Oliver Gugger
c6b3e21801
make: add rpc command 2020-11-06 10:42:56 +01:00
Carla Kirk-Cohen
b50a99fa39
Merge pull request #311 from carlaKC/docs-autoloop
docs: add autoloop documentation
2020-11-03 11:17:16 +02:00
carla
293078d920
docs: add autoloop documentation 2020-11-03 11:09:02 +02:00
Oliver Gugger
66eff361c2
Merge pull request #312 from guggero/lnd-update
mod: update to final lnd version
2020-10-30 09:52:04 +00:00
Oliver Gugger
36fdbda6c4
mod: update to final lnd version 2020-10-30 10:36:41 +01:00
Alex Bosworth
96a2187518
Merge pull request #310 from lightninglabs/v0.11.0-beta
version: bump to 0.11.0-beta
2020-10-27 10:54:33 -07:00
Alex Bosworth
a944834a5e
version: bump to 0.11.0-beta 2020-10-27 09:01:41 -07:00
Alex Bosworth
87d7899d6c
Merge pull request #309 from lightninglabs/remove-old-lnd-versions
README: remove guidance for older versions of LND
2020-10-27 08:53:16 -07:00
Alex Bosworth
062be68352
README: remove guidance for older versions of LND
Older versions of LND should not be used
2020-10-26 15:38:19 -07:00
Carla Kirk-Cohen
c89f57d2a3
Merge pull request #307 from carlaKC/releasenotes-moveautoloop
releasenotes: move autoloop and simplify instructions
2020-10-26 08:49:44 +02:00
carla
99a96a80ae
release_notes: delete old release notes and add instruction
It can be confusing to have multiple sets of release notes tracked in
this doc. Remove already released versions and update instructions.
2020-10-22 21:15:17 +02:00
carla
6f8f6899a3
release_notes: move autoloop into next release
Merged in the wrong place
2020-10-22 20:46:52 +02:00
Carla Kirk-Cohen
96f395e263
Merge pull request #305 from carlaKC/autoloop-forcetick
liquidity: add force tick endpoint to trigger autoloop in tests
2020-10-15 14:10:06 +02:00
carla
87b02b7715
multi: add force tick endpoint behind debug server
To itest our autolooper, we need to be able to trigger dispatch on
demand. This functionality is included in a separate rpc server behind
a dev flag. Since it is unlikely that we need to split loop into
multiple rpc servers, this commit simply adds an additional debug server
rather than opting for a full subserver setup.
2020-10-15 13:53:27 +02:00
Oliver Gugger
62be092c87
Merge pull request #306 from lightninglabs/label-tx
Update lndclient, add labels to on-chain transactions
2020-10-15 10:47:31 +02:00
Oliver Gugger
6e71185a9b
release_notes: add labels 2020-10-15 10:40:13 +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
Oliver Gugger
3a3571ba6f
labels: add on-chain labels for loop in/out 2020-10-15 10:25:59 +02:00
Carla Kirk-Cohen
afc41adab0
Merge pull request #295 from carlaKC/205-autoout
liquidity: add budget-limited autoloop
2020-10-15 08:50:46 +02:00
Alex Bosworth
24523b569f
Merge pull request #302 from alexbosworth/v0.10.0-beta
version: bump to 0.10.0-beta
2020-10-13 08:54:15 -07:00
Oliver Gugger
649976fa48
Merge pull request #304 from guggero/user-agent-string
Send user agent string with each swap
2020-10-13 08:36:29 +02:00
Oliver Gugger
45ee44d8eb
release_notes: mention user agent string 2020-10-13 08:34:06 +02:00
Oliver Gugger
61b2387be7
looprpc+swap_client: add user agent string to swaps 2020-10-13 08:28:55 +02:00
Oliver Gugger
f36b105135
version: add user agent string 2020-10-13 08:28:55 +02:00
carla
24fb50a1dd
release_notes: add autolooper to new features 2020-10-12 13:34:58 +02:00
carla
a2edd78f5a
loop: add autoout parameters to cli 2020-10-12 13:34:57 +02:00
carla
eb6b476469
looprpc: add autoloop parameters to rpc server 2020-10-12 13:34:56 +02:00
carla
8166d936e1
multi: add opt-in automated swap dispatch to liquidity manager 2020-10-12 13:34:55 +02:00
carla
fd17580213
liquidity: add max in flight limit to swap suggestions
To allow control over the rate at which we dispatch autoloops, we add
a limit to the number of in flight autoloops we allow.
2020-10-12 13:34:54 +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
carla
bda6d36a90
liquidity/test: pass full parameters into suggest swaps and add default
As we add more parameters in this PR, we wil want to test values
beyond our default values. This commit updates the suggest swaps test
helper to take a full setup struct, and adds a default set of channels
and rules which will be used in the absense of this setup struct.
2020-10-12 13:34:53 +02:00
carla
7b56804bbe
multi: move label validation to rpc and simplify validation function
Previously labels with reserved prefixes were added to provide us
with a way to identify automatically dispatched loops. This commit moves
the validation of these labels to the rpc level so that it will only
apply to user-initiated swaps.
2020-10-12 13:34:52 +02:00
Carla Kirk-Cohen
15a400b411
Merge pull request #303 from carlaKC/gosum-clean
go.sum: run go mod tidy to cleanup old dependencies
2020-10-12 13:32:14 +02:00
carla
b1a4313fbb
go.sum: run go mod tidy to cleanup old dependencies 2020-10-12 12:45:11 +02:00
Alex Bosworth
d72b8edef6
version: bump to 0.10.0-beta 2020-10-09 10:08:21 -07:00
Carla Kirk-Cohen
a6956a4e06
Merge pull request #289 from carlaKC/205-restrictsuggestions
suggestions: add fee and ongoing swap restrictions
2020-10-05 08:57:35 +02:00
carla
14ccdc9b61
release_notes: add swap suggestions updates to release notes 2020-09-30 13:26:26 +02:00
carla
ed95c16ae4
loop: add set params command 2020-09-30 12:46:37 +02:00
carla
8931fd370c
loop: rename setparam command to setrule
As we add more paramters to the liqudity manager, it will become more
difficult to include them in a single cli endpoint with rules. This
commit renames the existing setparam command (which is only used for
rules at present), so that we can have a dedicated paramters cli
command for all the new values we are adding.
2020-09-30 12:46:36 +02:00
carla
f23a527927
looprpc: add fee and backoff parameters to rpc 2020-09-30 12:46:35 +02:00
carla
0212a41ed0
liquidity: make swap suggestions fee-aware 2020-09-30 12:46:35 +02:00
carla
1d8609bae3
liquidity: add sweep fee limit and confirmations to suggestions
To decide whether we event want to attempt a swap, we add a fee limit
that we check against our estimate for the current number of
confirmations we want our sweep to confirm in. If fees are higher than
this limit, we do not suggest swaps.
2020-09-30 12:46:34 +02:00
carla
64422ce26a
liquidity: exclude recently failed swaps from suggestions 2020-09-30 12:46:33 +02:00
carla
7740231bac
liquidity: make swap suggestions aware of ongoing swaps 2020-09-30 12:46:32 +02:00
carla
559abd1eea
liquidity: add default parameters struct 2020-09-30 12:46:31 +02:00
carla
ad8b5d0552
liquidity: add clock for mocking time in tests 2020-09-30 12:46:30 +02:00
carla
7e9034b2ff
liquidity: return OutRequest from swap suggestions and set fees
This commit updates swap suggestions to return loop out requests with
sufficient fields populated so that a loop out can directly be
dispatched from a suggestion. This requires setting of fees an min
sweep conf targets (our htlc conf target and addresss will be set by
the daemon's client rpc server if we do not provide them). We also do
some test refactoring so that we can more easily test the suggest swaps
endpoint.
2020-09-30 12:46:29 +02:00
Oliver Gugger
48744e8a2f
Merge pull request #301 from carlaKC/macaroons-suggestionendpoint
loopd: add suggestions endpoints to macaroon permissions
2020-09-30 12:07:36 +02:00