Commit graph

1627 commits

Author SHA1 Message Date
Slyghtning
7421916eba
staticaddr: separate file for rpc service 2024-12-12 18:19:32 +01:00
Slyghtning
4bf2a9b834
swapserverrpc: static address loop-ins 2024-12-12 18:19:32 +01:00
Slyghtning
f2c9fb8a68
swapserverrpc: fix ServerLoopInQuoteRequest comments 2024-12-12 18:19:32 +01:00
Slyghtning
bfad2d9c54
swapserverrpc: fix withdrawal comments 2024-12-12 18:19:31 +01:00
András Bánki-Horváth
2d31b40bc9
Merge pull request #867 from bhandras/test-flake-fixup
loop: do not error out on context done in the executor
2024-12-12 18:07:30 +01:00
Andras Banki-Horvath
a107036261
loop: do not error out on context done in the executor 2024-12-12 17:52:32 +01:00
Slyghtning
d198bb8230
Merge pull request #856 from hieblmi/signet-support
Signet support
2024-11-21 16:08:38 +01:00
Slyghtning
889a938a78
conf: add signet in sample conf 2024-11-21 13:47:24 +01:00
Slyghtning
22b1f53e3e
daemon: add signet support 2024-11-21 13:47:23 +01:00
Slyghtning
7f1344113f
Merge pull request #560 from ziggie1984/bugfix-nil-pointer
loopd: nil-pointer bug when showing subsystems
2024-11-18 15:48:45 +01:00
Slyghtning
5db270dcd8
log: remove unused logWriter 2024-11-18 15:43:36 +01:00
ziggie
59d7d08aee
loopd: nil-pointer bug when showing subsystems 2024-11-18 15:43:35 +01:00
András Bánki-Horváth
40328fe04a
Merge pull request #850 from lightninglabs/dependabot/go_modules/github.com/golang-jwt/jwt/v4-4.5.1
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.4.2 to 4.5.1
2024-11-15 16:26:02 +01:00
dependabot[bot]
82cc77a987
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.4.2 to 4.5.1
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.4.2 to 4.5.1.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.4.2...v4.5.1)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-12 21:38:33 +00:00
Boris Nagaev
0fe952a5c7
Merge pull request #838 from starius/loopout-retarget-feerate-ever-block
loopout: re-target sweep's feerate every block
2024-11-11 20:56:35 -03:00
Boris Nagaev
2f22f96e73
loopout: re-target sweep's feerate every block
Add type loopOutSweepFeerateProvider which determines confTarget based on
distance to swap expiration, then determines feerate and fee using. Fee rate
is plugged into sweepbatcher using WithCustomFeeRate. Option WithPublishDelay
is used to make sure fee-rate is updated by loopout.go before the value is used
by sweepbatcher.

When determining confTarget, there are few adjustments over raw distance to
cltv_expiry:
 - make sure confTarget is positive (if the swap has expired, raw distance is
   negative)
 - If confTarget is less than or equal to DefaultSweepConfTargetDelta (10),
   cap it with urgentSweepConfTarget and apply fee factor (1.1x).

Also, if feerate is less than floor (1 sat/vbyte), then the floor is used.

DefaultSweepConfTargetDelta was decreased from 18 to 10.

Every block 100 sats/kw fee bump is disabled. Sweepbatcher re-targets feerate
every block according to current mempool conditions and the number of blocks
until expiry.

Added tests for loopOutSweepFeerateProvider simulating various conditions.
2024-11-11 20:35:35 -03:00
Boris Nagaev
697e8d6255
sweep: log tx label in GetSweepFee methods
Added argument 'label' to GetSweepFee and GetSweepFeeDetails. It is logged
together with expected weight, fee and feerate.
2024-11-11 20:35:35 -03:00
Boris Nagaev
f8c1607154
loopout, liquidity: turn vars to constants
There are some numeric constants that used to be defined as vars complicating
their usage. They were turned into constants: MinLoopOutPreimageRevealDelta,
DefaultSweepConfTarget, DefaultHtlcConfTarget, DefaultSweepConfTargetDelta.

Also make liquidity.defaultHtlcConfTarget a constant, not a var.
2024-11-11 20:35:35 -03:00
Boris Nagaev
6c62ded35b
loopout: remove dead code
The first result of function sweepConfTarget was not used. The function
was renamed to canSweep to better reflect what it does.
2024-11-11 20:35:35 -03:00
András Bánki-Horváth
9c347b4cab
Merge pull request #849 from pinglanlu/master 2024-11-11 11:58:55 +01:00
pinglanlu
1fddf94f8e chore: remove redundant word in release.sh
Signed-off-by: pinglanlu <pinglanlu@outlook.com>
2024-11-11 18:44:01 +08:00
Alex Bosworth
91fe0c1b71
Merge pull request #842 from lightninglabs/alexbosworth-patch-7
version: bump version to v0.28.9-beta
2024-10-30 11:55:05 -07:00
Alex Bosworth
4dff259727
version: bump version to v0.28.9-beta 2024-10-30 10:54:40 -07:00
Konstantin Nick
a54405428a
Merge pull request #841 from sputn1ck/better_ntfn_stream_l402
Notifications: Improve L402 handling
2024-10-30 17:26:07 +01:00
sputn1ck
7ca5dc81bc
cmd: add fetchl402 cli command
This commit adds a new command to the loop cli tool that fetches the
a l402 token from the swap server.
2024-10-30 17:18:35 +01:00
sputn1ck
830220af66
looprpc: add FetchL402 rpc
This commit adds the FetchL402 rpc to the client proto, which will allow
users to force fetching an L402 without doing a loop out or in.
2024-10-30 17:18:34 +01:00
sputn1ck
e9f1a1aef3
ntfn: use l402 store for tokens
This commit changes the way we fetch the l402 tokens for the
notification stream. Instead of fetching them from the server and
paying an invoice, we now look into our local store for the token.
This means that a loop client will not autofetch a token.
2024-10-30 17:12:28 +01:00
András Bánki-Horváth
15ee9789d9
Merge pull request #840 from lightninglabs/dependabot/go_modules/github.com/opencontainers/runc-1.1.14
build(deps): bump github.com/opencontainers/runc from 1.1.12 to 1.1.14
2024-10-24 15:50:10 +02:00
Konstantin Nick
78fafbaeb4
Merge pull request #839 from sputn1ck/fsm_ctx
FSM: add ctx to SendEvent and Actions
2024-10-22 16:49:45 +02:00
sputn1ck
f2fb722901
reservation: add initchan
This fixes a flake in the unit tests
2024-10-22 11:46:31 +02:00
sputn1ck
246becb10a
instantout: update package to use new fsm context
This commit updates the instantout package to use the new fsm context
instead of the old fsm context. This is only a first step in the process
of migrating the instantout package to the new fsm context. The next
step should be to remove the stored context in the instantout manager.
2024-10-22 11:46:31 +02:00
sputn1ck
44306275f7
reservation: update package to use new fsm context
This commit updates the reservation package to use the new fsm context
instead of the old fsm context. This is only a first step in the process
of migrating the reservation package to the new fsm context. The next
step should be to remove the stored context in the reservation manager.
2024-10-22 11:46:30 +02:00
dependabot[bot]
ac4752f722
build(deps): bump github.com/opencontainers/runc from 1.1.12 to 1.1.14
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.12 to 1.1.14.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.12...v1.1.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-22 07:25:23 +00:00
Oliver Gugger
1e8ae31ddc
Merge pull request #828 from lightninglabs/update-to-lnd-18-4
multi: bump lnd compile time dependency to v0.18.4-beta
2024-10-22 09:24:06 +02:00
Oliver Gugger
93525d3edf
multi: bump lnd compile time dependency to v0.18.4-beta 2024-10-22 09:12:31 +02:00
sputn1ck
7b00baeac6
fsm: add ctx to SendEvent and Actions 2024-10-21 21:17:56 +02:00
András Bánki-Horváth
b1719de5b9
Merge pull request #836 from lightninglabs/alexbosworth-patch-7
version: bump version to v0.28.8-beta
2024-10-21 15:23:19 +02:00
Slyghtning
32ab2626af
Merge pull request #837 from hieblmi/fsm-notif-context
fsm: add event context to notification struct
2024-10-16 20:53:13 +02:00
Slyghtning
93413ffbbb
fsm: add event context to notification struct 2024-10-16 20:39:11 +02:00
Alex Bosworth
465a6bf3ce
version: bump version to v0.28.8-beta
version: bump version to v0.28.8-beta
2024-10-16 06:46:41 -07:00
Konstantin Nick
0ab40fe5d0
Merge pull request #834 from sputn1ck/fix_select
reservations: check if channel is closing
2024-10-16 10:46:27 +02:00
sputn1ck
d6c7237b77
reservations: check if channel is closing
This commit adds a check to the runtime loop
of the reservation manager to check if the
channel is closing before trying to read
from it.
2024-10-15 20:26:05 +02:00
Boris Nagaev
2c32575c75
Merge pull request #833 from starius/sweepbatcher-feerate-grows
sweepbatcher: make sure feerate does not decrease
2024-10-15 12:43:56 -03:00
Boris Nagaev
864d7f24cd
sweepbatcher: make sure feerate does not decrease
Previous behaviour was to overwrite batch's feerate with minFeeRate of
its primary sweep, which could be lower that previus batch's feerate or
lower that feerate of some other sweep.

Instead, batch's feerate only grows and never declines and is at least as high
as the highest feerate of its sweeps.

Added a test to verify this.
2024-10-15 11:28:40 -03:00
Slyghtning
f0a25f9429
Merge pull request #832 from hieblmi/log-loop-validation
loopout: trace logs for hasBandwidth mpp check
2024-10-15 11:19:38 +02:00
Slyghtning
caa8cc850d
loopout: trace logs for hasBandwidth mpp check 2024-10-15 10:08:31 +02:00
Konstantin Nick
8bc6b61de1
Merge pull request #826 from sputn1ck/generalized_notif_stream
Generalized notif stream
2024-10-08 15:15:43 +02:00
sputn1ck
7409ae73c6
loopd: add notification manager
This commit adds the notification manager to the
loopd daemon.
2024-10-08 14:58:41 +02:00
sputn1ck
5df53cd81a
notifications: add notification manager
This commit adds a generic notification manager
that can be used to subscribe to different types
of notifications.
2024-10-08 14:58:41 +02:00
sputn1ck
6408ec8e7e
reservation: remove notifications from reservation
This commit removes the notification stream from
the reservation manager and replaces it with a
subscriber interface.
2024-10-08 14:58:37 +02:00