Commit graph

1647 commits

Author SHA1 Message Date
Slyghtning
d76c99ca9f
staticaddr: deposit logger 2024-12-12 18:31:03 +01:00
Slyghtning
52a11a0b1b
staticaddr: interfaces 2024-12-12 18:31:03 +01:00
Slyghtning
5f4fca8219
sqlc: deposit queries, models and migrations 2024-12-12 18:31:03 +01:00
Slyghtning
b454d957ab
looprpc: include static address in swap client
We remove the static address client and add its
rpcs into the SwapClient
2024-12-12 18:31:02 +01:00
Slyghtning
edea6720cb
loop: list unspent static address outputs 2024-12-12 18:31:02 +01:00
Slyghtning
ded2526db7
perms: list unspent outputs 2024-12-12 18:31:02 +01:00
Slyghtning
eeaf291980
staticaddr: list unspent outputs in server 2024-12-12 18:31:02 +01:00
Slyghtning
a1392728ba
staticaddr: track and list spends in manager 2024-12-12 18:31:02 +01:00
Slyghtning
ff08d9a2c8
looprpc: list unspent static address 2024-12-12 18:31:02 +01:00
Slyghtning
a0d10fca93
loop: static address creation client command 2024-12-12 18:31:02 +01:00
Slyghtning
14810b7e6d
perms: static address creation permission 2024-12-12 18:31:01 +01:00
Slyghtning
40c731f654
daemon: integrate static address manager and sql store 2024-12-12 18:31:01 +01:00
Slyghtning
d351d22de7
staticaddr: static address server 2024-12-12 18:31:01 +01:00
Slyghtning
8d777c249a
staticaddr: static address manager 2024-12-12 18:31:01 +01:00
Slyghtning
ca2ecac3d1
loopdb: static address store 2024-12-12 18:31:01 +01:00
Slyghtning
8f60a49977
log: static address sub logger 2024-12-12 18:31:01 +01:00
Slyghtning
a9b41bf781
looprpc: static address creation 2024-12-12 18:31:00 +01:00
Slyghtning
2c07434a72
sqlc: static address migrations, models, queries 2024-12-12 18:31:00 +01:00
Slyghtning
2ec44f0c83
Merge pull request #855 from hieblmi/separate-swapserverrpc-commits
StaticAddr: separate swapserverrpc commits
2024-12-12 18:30:44 +01:00
sputn1ck
d0e484a3c0
swapserverrpc: add new functions
This commit adds a new notification to the proto, which is used by the
server to request signatures for a deposit of a static loop in.
2024-12-12 18:19:32 +01:00
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