2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-08 01:10:29 +00:00
Commit Graph

1122 Commits

Author SHA1 Message Date
dependabot[bot]
d722690266
build(deps): bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.13+incompatible to 20.10.24+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v20.10.13...v20.10.24)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 17:55:42 +00:00
Konstantin Nick
0781cafbfb
Merge pull request #585 from sputn1ck/sqlite
Migrate from boltdb to sql
2023-06-20 19:54:37 +02:00
sputn1ck
b41752f110
build: add sqlite/postgres releasenotes 2023-06-20 19:11:26 +02:00
sputn1ck
270bc3104e
multi: add sql stores to loopd
This commit adds the ability to choose between different sql stores
for loopd. The default is sqlite, but it can be changed to postgres.
2023-06-20 18:59:32 +02:00
sputn1ck
a2abcd07d8
loopd: Run migration if boltdb exists 2023-06-20 18:59:32 +02:00
sputn1ck
69b4df0d9b
loopdb: add migrator
This commit adds a migrator to the loopdb package that manages migrating
between 2 databases
2023-06-20 18:59:31 +02:00
sputn1ck
9d7f3bf2fa
build: add postgres unit tests to makefile and CI 2023-06-20 18:59:31 +02:00
sputn1ck
3ee5bb6365
loopdb: add postgres store
This commit adds a postgres store to the loopdb package.
Ths postgres migrator uses a replacer filesystem to replace the
sqlite types to postgres types in the migration.
2023-06-20 18:59:30 +02:00
sputn1ck
ab8923fc38
loopdb: add sqlite test files 2023-06-20 18:59:25 +02:00
sputn1ck
9278c18768
loopdb: add nil check to boltdb liquidity test
This commit adds a nil check to the boltdb liquidity test. There was
a difference between the sqlite and boltdb implementation. This test
covers that.
2023-06-20 18:59:24 +02:00
sputn1ck
0826b748f5
loopdb: add sqlite store implementation 2023-06-20 18:59:23 +02:00
sputn1ck
f8c65bbc4c
loopdb: create base sqlite store 2023-06-20 17:31:40 +02:00
sputn1ck
206e463db7
loopdb: generate sqlc files 2023-06-20 17:31:40 +02:00
sputn1ck
85a757f635
loopdb: implement sqlite queries 2023-06-20 17:31:40 +02:00
sputn1ck
3c58e98a0f
loopdb: add loopdb sqlite migrations 2023-06-20 17:31:39 +02:00
sputn1ck
5c07c20d16
tools: add sqlc generation tools 2023-06-20 14:19:31 +02:00
sputn1ck
5d9d7c5c6e
loopdb: add batch insert
This commit adds a batch insert to the interface. This greatly reduces
the time the migration will take. It is not implemented for the boltdb, as
we will not be supporting migrating to the boltdb.
2023-06-20 14:06:05 +02:00
sputn1ck
becc8a38d8
multi: use context in loopdb call
This commit adds a context to our loopdb interface, which we should use
in the sqlite migration.
2023-06-19 12:28:32 +02:00
George Tsagkarelis
0be05a99cc
Merge pull request #596 from GeorgeTsagk/autoloop-false-positive-check
liquidity: add false-positive checks on autoloop tests
2023-06-14 16:35:03 +03:00
George Tsagkarelis
afca558817
liquidity: add false-positive checks on autoloop tests 2023-06-14 16:27:46 +03:00
George Tsagkarelis
9847f3ab3b
Merge pull request #595 from GeorgeTsagk/easy-autoloop-feeppm-param
Easy autoloop feeppm parameter
2023-06-14 16:06:41 +03:00
George Tsagkarelis
13da22428c
docs: add easyautoloop comment for custom feeppm 2023-06-14 15:58:45 +03:00
George Tsagkarelis
dbb49cfa05
liquidity: test low feeppm case for easyautoloop 2023-06-14 15:58:44 +03:00
George Tsagkarelis
64d2cbe5d6
liquidity: respect feeppm if set for easyautoloop 2023-06-14 15:53:09 +03:00
George Tsagkarelis
319a519309
Merge pull request #591 from GeorgeTsagk/autoloop-easy-tag
Autoloop easy tag
2023-06-05 17:49:51 +03:00
George Tsagkarelis
5e2cb14ff1
Merge pull request #594 from GeorgeTsagk/autoloop-in-flake-fix
Autoloop-in flake fix
2023-06-02 17:16:37 +03:00
George Tsagkarelis
dcc28936ce
liquidity: bump miner multiplier in autoloop-in test
After the FeePPM miner fee fix there has probably been a race condition
in this test. The test would expect only one of the two quotes to work,
as one had a marginally high miner fee. After the FeePPM fix that miner
fee was considered valid and we dispatched two swaps instead of one,
with the test setup examining the first one that reached the go channel.
2023-06-02 14:08:10 +03:00
George Tsagkarelis
1f72dcc095
liquidity: use easy autoloop labels 2023-06-02 14:00:58 +03:00
George Tsagkarelis
5cdf31bfc8
labels: add easy autoloop labels 2023-06-02 14:00:58 +03:00
George Tsagkarelis
f4419aa424
Merge pull request #590 from GeorgeTsagk/autoloop-bool-fix
liquidity: get autoloop flag directly from params
2023-06-01 12:57:59 +03:00
George Tsagkarelis
12ce45a3ec
Merge pull request #593 from bhandras/autoloop-doc-correction 2023-05-30 11:57:25 +03:00
Andras Banki-Horvath
3be484488d
docs: correct autobudgetrefreshperiod example 2023-05-30 09:50:33 +02:00
George Tsagkarelis
a48924a664
liquidity: get autoloop flag directly from params
Previously we would exclusively pass the autoloop boolean to multiple
functions while they had directly access to the manager's parameters.
With this commit we remove this explicit flag from the various function
interfaces and retrieve the value directly from the parameters.
2023-05-29 13:24:16 +03:00
Alex Bosworth
52a08eb1f4
Merge pull request #589 from lightninglabs/update-to-v0.24.1-beta
version: bump version to v0.24.1-beta
2023-05-26 06:54:07 -07:00
Alex Bosworth
507364d09b
version: bump version to v0.24.1-beta 2023-05-26 06:28:45 -07:00
András Bánki-Horváth
1eb52a05e4
Merge pull request #588 from hieblmi/getinfo-rest-docs
looprpc: add rest entries for getinfo rpc
2023-05-26 10:49:25 +02:00
Slyghtning
d84af7065c looprpc: add rest entries for getinfo rpc 2023-05-26 10:07:48 +02:00
Alex Bosworth
62eced626a
Merge pull request #587 from lightninglabs/update-to-v0.24.0-beta
version: bump version to v0.24.0-beta
2023-05-24 12:48:28 -07:00
Alex Bosworth
3cf9d616d6
version: bump version to v0.24.0-beta 2023-05-24 11:47:15 -07:00
András Bánki-Horváth
037966b3ca
Merge pull request #586 from hieblmi/getinfo-rpc
`getInfo` rpc for `loopd`
2023-05-24 18:06:00 +02:00
Slyghtning
84bf30301f loop: client calls getInfo rpc 2023-05-24 17:50:26 +02:00
Slyghtning
043f780198 loopd: adding getInfo rpc call 2023-05-24 17:50:24 +02:00
Slyghtning
7f6f265db3 looprpc: request and response params for new getInfo rpc 2023-05-24 17:32:23 +02:00
George Tsagkarelis
cb8975d605
Merge pull request #567 from GeorgeTsagk/autoloop-rework
Autoloop rework -- easy autoloop
2023-05-22 16:00:54 +03:00
George Tsagkarelis
5edc39dff3
loop: update docs and release notes 2023-05-22 15:48:48 +03:00
George Tsagkarelis
9a9766775a
liquidity: add easy autoloop test 2023-05-22 15:48:38 +03:00
George Tsagkarelis
fad9f40ae3
liquidity+loopd: add easy autoloop
Adds the easy autoloop function which executes a budget update and the
best easy-autoloop swap. The easy-autoloop function re-uses functions
used in the normal autoloop that relate to on-going swaps and traffic
summary.
2023-05-22 15:48:38 +03:00
George Tsagkarelis
cd9f6f142b
cmd+looprpc: add new parameters for easy autoloop
This commit introduces the new parameters to the protofiles and the
cmd interface. If easy autoloop is enabled we just ignore the rest of
the rules and use the defaults of easy autoloop.
2023-05-22 15:48:37 +03:00
George Tsagkarelis
0a19485409
Merge pull request #581 from GeorgeTsagk/fee-percentage-miner
liquidity: differentiate autoloop expected vs max miner fees
2023-05-19 15:47:48 +03:00
George Tsagkarelis
36f014ac0a
liquidity: fix tests to reflect new miner fee scaling 2023-05-12 14:21:39 +03:00