Commit graph

1660 commits

Author SHA1 Message Date
Slyghtning
aa7afa7f73
looprpc: static address summary 2024-12-12 18:31:05 +01:00
Slyghtning
ab10ee972a
loop: static address withdrawals support 2024-12-12 18:31:05 +01:00
Slyghtning
a7f2f2d8c8
loopd: static address withdrawals support 2024-12-12 18:31:05 +01:00
Slyghtning
3dca1537c3
staticaddr: withdrawal manager and interface 2024-12-12 18:31:05 +01:00
Slyghtning
1f2ec79fed
staticaddr: address and deposit adjustments for withdrawals 2024-12-12 18:31:04 +01:00
Slyghtning
9e56be74c5
log: unified static address logger 2024-12-12 18:31:04 +01:00
Slyghtning
b5b857a198
looprpc: deposit withdrawal endpoint
A new rpc for deposit withdrawals is added.
A withdrawal cooperatively spends the 2/2
musig deposit outpoint to a client-specified
address.
2024-12-12 18:31:04 +01:00
Slyghtning
55f7625bc5
sqlc: withdrawal address for deposits
Deposit schema extension with a withdrawal
sweep address. If the user selects a deposit
for withdrawal the destination address of the
sweep is stored here.
2024-12-12 18:31:04 +01:00
Slyghtning
70b21893e0
staticaddr: public deposit method scope 2024-12-12 18:31:04 +01:00
Slyghtning
b7b553cf1e
unit: manager tests 2024-12-12 18:31:04 +01:00
Slyghtning
063e4a24a7
staticaddr: add swap client to cmd 2024-12-12 18:31:03 +01:00
Slyghtning
3914ab840f
staticaddr: deposits for server and daemon 2024-12-12 18:31:03 +01:00
Slyghtning
042fe9f325
staticaddr: deposit manager and fsm 2024-12-12 18:31:03 +01:00
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