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

1188 Commits

Author SHA1 Message Date
yyforyongyu
425a007aaf
loopd+liquidity: persist parameters on disk
This commit saves the RPC request used to construct the `Parameters` on
disk. Since it's a proto message, an easy way to read/write it is to
rely on the proto marshal/unmarshal methods. A side effect is that
migration also becomes easy as proto message have its own internal
mechanism to keep track of the compatibility.
2022-06-07 20:18:11 +08:00
yyforyongyu
26edd21889
loopdb: add new bucket to save liquidity params
This commit adds a new bucket to save liquidity parameters. We've
skipped the serialization and deserialization implementations here and
leave them to be handled by the liquidity package.
2022-06-07 19:19:53 +08:00
yyforyongyu
8217ee31c3
liquidity+loopd: refactor SetParameters to take a rpc request
This commit refactors the method `manager.SetParameters` to take a
`SetLiquidityParamsRequest`. As we'll see in the following commit, this
will enable us saving the params to disk more easily.
2022-06-07 19:19:52 +08:00
yyforyongyu
9c5ac0fb36
liquidity: move parameters into a new file
This commit refactors the `liquidity` by moving `Parameters` related
code into one file.
2022-06-07 19:19:52 +08:00
András Bánki-Horváth
a4d343ca1b
Merge pull request #501 from lightninglabs/lnd-15
multi: bump all dependency to use lnd 0.15.0-beta.rc4
2022-06-03 18:01:54 +02:00
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.
2022-06-03 10:50:47 +02:00
András Bánki-Horváth
14dfdc8521
Merge pull request #500 from sputn1ck/update_listswaps_api
Include provided last_hop and outgoing_chan_set to listswaps rpc
2022-05-31 20:52:05 +02:00
sputn1ck
ece0f76e7f
loop: update listswaps api 2022-05-31 16:26:55 +02:00
sputn1ck
efb6f75d60
swap: add lasthop, outgoingchanids to swapinfo 2022-05-31 16:26:51 +02:00
Yong
e98d813885
Merge pull request #495 from sputn1ck/check_p2pk_dest
loopout: reject P2PK addresses
2022-05-25 00:10:22 +08:00
Oliver Gugger
6d1708de68
Merge pull request #496 from sputn1ck/dockerize_linter
Dockerize linter, add gosimports
2022-05-20 10:28:29 +02:00
sputn1ck
ce596468e9
loopout: reject unsupported address formats
This commit adds a check to reject unsupported address
formats such as P2PK or P2TR addresses
2022-05-20 10:22:11 +02:00
sputn1ck
a34f22c443
make fmt 2022-05-20 10:16:47 +02:00
sputn1ck
4ed3197985
make+tools: tidy makefile, add gosimports 2022-05-20 10:16:47 +02:00
sputn1ck
a1271fee40
multi: fix linter issues 2022-05-20 10:16:46 +02:00
sputn1ck
f0bf9302cc
make: dockerize linter 2022-05-20 10:16:42 +02:00
András Bánki-Horváth
1741896e33
Merge pull request #487 from C-Otto/master 2022-05-07 16:49:23 +02:00
Carsten Otto
b0044e0994 loopout: remove double space in log message 2022-05-06 17:34:19 +02:00
Oliver Gugger
dee7542b36
Merge pull request #485 from thinkmassive/github-workflow-docker
github: initial docker workflow
2022-04-29 13:05:38 +02:00
Alex Miller
dd01b90afd
github: initial docker workflow
Builds a Docker image for tags starting with 'v'

The image repository name is defined by environment variable DOCKER_REPO, which
defaults to: lightninglabs/loop

To override it, if you want to publish the image to your own DockerHub account,
define a Github Actions secret named DOCKER_REPO with the full image repo name
such as: <docker_user>/loop
2022-04-28 22:33:46 -04:00
Harsha Goli
6deed23a18
Merge pull request #482 from arshbot/HtlcV3-taproot-base
swap: HTLCV3 added
2022-04-25 10:28:38 -04:00
Harsha Goli
dec6dd7e70
swap: HTLCV3 added
In this commit we add the version 3 htlc, which is implemented with
taproot script spending the two payment paths: the claim path case, and
the timeout case.
2022-04-22 11:36:09 -04:00
Harsha Goli
968676c956
Merge pull request #481 from lightninglabs/revert-473-HtlcV3-taproot-base
Revert "swap: HTLCV3 added"
2022-04-20 11:31:36 -04:00
Harsha Goli
803e668d70
Revert "swap: HTLCV3 added" 2022-04-20 10:57:49 -04:00
Harsha Goli
5446a1f217
Merge pull request #473 from arshbot/HtlcV3-taproot-base
swap: HTLCV3 added
2022-04-20 10:56:17 -04:00
Harsha Goli
173c213a66
swap: HTLCV3 added
In this commit we add the version 3 htlc, which is implemented with
taproot script spending the two payment paths: the claim path case, and
the timeout case.
2022-04-20 10:52:42 -04:00
Harsha Goli
cee607f6a2
swap: refactor NewHtlc so pkScript is generatred per output 2022-04-20 10:52:42 -04:00
András Bánki-Horváth
fd811a8ded
Merge pull request #480 from bhandras/docker-fix 2022-04-15 11:05:23 +02:00
Andras Banki-Horvath
e2ff490fe5
docker: add support for multiarch builds 2022-04-14 16:59:49 +02:00
Alex Bosworth
b5e7e3ded8
Merge pull request #476 from lightninglabs/v0.18.0-bump
version: bump version to v0.18.0-beta
2022-03-30 09:19:22 -07:00
Alex Bosworth
bf7d157193
version: bump version to v0.18.0-beta 2022-03-30 09:04:48 -07:00
Oliver Gugger
6984fc61a4
Merge pull request #456 from MarnixCroes/loop-2022
Update LICENSE
2022-03-28 21:50:43 +02:00
Oliver Gugger
deec719dfc
Merge pull request #472 from lightninglabs/btcec-v2-btcutil-bump
multi: bump btcec/v2 and btcutil to new versions
2022-03-25 16:39:29 +01:00
Oliver Gugger
5f46d0b83f
travis+docker: bump golang version to v1.17.x 2022-03-25 11:00:17 +01:00
Harsha Goli
7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00
Oliver Gugger
d1ba70e3fa
Merge pull request #469 from guggero/sweeper-pk-script
sweep: always send signed output's pk script
2022-03-21 17:52:57 +01:00
Oliver Gugger
732390e677
release_notes: add notes about bugfix 2022-03-21 15:08:43 +01:00
Oliver Gugger
b7e5c0b449
sweep: always send signed output's pk script
Fixes #457.
The SignOutputRaw RPC is normally too lenient when it comes to fields
not being set, which is why this used to work previously. But with lnd
in remote signing mode, we need all the extra meta information available
on an input being signed for, so we actually need the pk script being
set.
Loop fully works with a remote signing lnd backend pair after applying
this fix.
2022-03-21 14:49:10 +01:00
András Bánki-Horváth
a6350905d7
Merge pull request #466 from bhandras/routing-plugin-force-mc-import
routing: integrate with the forced MC import to eliminate the "1 sec hack" when importing pair history
2022-03-16 15:06:11 +01:00
Andras Banki-Horvath
eb1371ee1e
docs: update release notes 2022-03-16 13:23:41 +01:00
Andras Banki-Horvath
5b737855c1
loopd: update minimum required LND version to v0.14.2-beta 2022-03-16 13:23:41 +01:00
Andras Banki-Horvath
dc9bc9e976
routing: integrate forced MC import to the low/high plugin 2022-03-16 13:23:41 +01:00
Andras Banki-Horvath
9ace542056
mod: bump lndclient to 0.14.2 including forced MC import 2022-03-16 13:23:40 +01:00
Harsha Goli
c05ee21e46
Merge pull request #465 from arshbot/feerate-fix
main: fix feepercent from intflags to float
2022-03-12 15:59:10 -05:00
Harsha Goli
0b414cb45e
main: fix feepercetn from intflags to float
Previously, the feepercent flag on autoloop was set to an IntFlag and
later converted to Float, leading to the issue where users couldn't
specify decimal rates even though we allowed it.
2022-03-01 10:55:22 -05:00
András Bánki-Horváth
40882b74e4
Merge pull request #462 from bhandras/routing-plugin-report-filter 2022-02-18 12:57:18 +01:00
Andras Banki-Horvath
32d55dc814
loopout: do not report prepays and fix plugin type if acquire fails 2022-02-18 08:42:42 +01:00
Yong
f650071bca
Merge pull request #461 from yyforyongyu/add-server-state
swapserverrpc: update server swap state
2022-02-14 20:31:06 +08:00
yyforyongyu
dfbd01988e
swapserverrpc: update server swap state 2022-02-14 20:27:21 +08:00
András Bánki-Horváth
bf67b14595
Merge pull request #439 from bhandras/ignore_cheap_paths
loopout: using server recommended routing plugins + low/high router
2022-02-14 11:17:26 +01:00