Commit graph

2147 commits

Author SHA1 Message Date
Boris Nagaev
508d90f384
multi: update Go to 1.24.10 2025-11-16 00:26:02 -03:00
Boris Nagaev
de969fdf25
Merge pull request #1042 from starius/sweepbatcher-fix-race-addsweeps
sweepbatcher: handle batch shutdown during re-add
2025-11-13 01:08:45 -03:00
Slyghtning
eb8c3dddc7
Merge pull request #1038 from hieblmi/remove-htlc
loopout: don't print htlc address
2025-11-12 09:31:38 +01:00
Boris Nagaev
f8272dd2bf
Merge pull request #1041 from starius/bump-lndclient
go.mod: update lndclient to v0.20.0-4
2025-11-12 03:47:28 -03:00
Boris Nagaev
37eb3462e5
sweepbatcher: handle batch shutdown during re-add
Started from CI failure of TestSweepBatcherHandleSweepRace/loopdb [1] that
surfaced ErrBatcherShuttingDown when the AddSweep loop caught a batch right as
it finished. Reproduced via:

go test ./sweepbatcher -run TestSweepBatcherHandleSweepRace/loopdb -cpu=12,4,8 -count=1

Discovered that handleSweeps treated ErrBatchShuttingDown from batch.addSweeps
as fatal, so the batcher exited even though the sweep was already confirmed.
Fixed by treating that error as "batch already done" so we fall through to the
persisted status/monitorSpend path, and added a regression test that
deterministically simulates the shutdown window.

New regression test added:
go test ./sweepbatcher -run TestSweepBatcherHandleBatchShutdown

[1] https://github.com/lightninglabs/loop/actions/runs/19282552307/job/55136597881?pr=1041
2025-11-12 01:45:18 -03:00
Boris Nagaev
d82b3624b9
sweepbatcher: fix code format 2025-11-12 01:45:18 -03:00
Boris Nagaev
79848aa93b
go.mod: update lndclient to v0.20.0-4
Include https://github.com/lightninglabs/lndclient/pull/250
SubscribeSingleInvoice: provide full invoice (lnd-20-0 port)

Include https://github.com/lightninglabs/lndclient/pull/254
Port "SendCoins: use SatPerVbyte" and "bump runc to 1.2.8" to lnd-20-0

Fixed Loop build after https://github.com/lightninglabs/lndclient/pull/250
2025-11-11 21:37:23 -03:00
Slyghtning
8df357bbc9
loopout: don't print htlc address 2025-11-10 17:46:59 +01:00
Slyghtning
16d56f1274
Merge pull request #1034 from lightninglabs/dependabot/go_modules/github.com/opencontainers/runc-1.2.8
build(deps): bump github.com/opencontainers/runc from 1.2.0 to 1.2.8
2025-11-05 19:22:39 +01:00
dependabot[bot]
feaf97fff6
build(deps): bump github.com/opencontainers/runc from 1.2.0 to 1.2.8
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.2.0 to 1.2.8.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/v1.2.8/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.2.0...v1.2.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-05 16:46:54 +00:00
Boris Nagaev
2331b2266a
Merge pull request #1033 from starius/fix-gonum
Fix "go mod check" CI failure
2025-11-05 13:12:05 -03:00
Boris Nagaev
c32309ec5c
cmd/loop: remove custom cli-docs template override
Now that https://github.com/urfave/cli-docs/pull/15 removes empty environment
variable columns, we can rely on upstream and delete our embedded template copy.
2025-11-04 21:58:52 -03:00
Boris Nagaev
b9832c475a
go.mod: bypass gonum.org domain
Probably the domain has blocked our CI by IP address. This commit go-replaced
the packages with their GitHub versions to fix the CI check "go mod check".
2025-11-04 21:58:45 -03:00
Boris Nagaev
d3b5e0a180
Merge pull request #1032 from starius/release-sh-multiple-tags
release.sh: fix for the case of multiple tags
2025-11-04 13:20:41 -03:00
Boris Nagaev
69c38acd25
release.sh: fix for the case of multiple tags
./release.sh v0.31.5-beta fails as of tag v0.31.5-beta:
tag v0.31.5-beta not checked out

This is because it checks the Git tag with `git describe`, but the current
commit has multiple tags and `git describe` returns swapserverrpc/v1.0.18
instead of expected v0.31.5-beta.

In this commit this edge case is addressed.
2025-11-04 12:38:31 -03:00
Konstantin Nick
3772a40750
Merge pull request #1031 from sputn1ck/revert_downgrade
Revert "Merge pull request #1028 from starius/downgrade-deps"
2025-11-03 15:16:00 +01:00
sputn1ck
c8c78c6f7a
versioning fixups 2025-10-31 19:05:40 +01:00
sputn1ck
e4f64ec9cc
Revert "Merge pull request #1028 from starius/downgrade-deps"
This reverts commit b11c959bc8, reversing
changes made to 0a182ee308.
2025-10-31 18:48:26 +01:00
Alex Bosworth
2b41fe2c7c
Merge pull request #1027 from lightninglabs/alexbosworth-patch-10
version: bump version to v0.31.5-beta
2025-10-31 07:35:40 -07:00
Boris Nagaev
b11c959bc8
Merge pull request #1028 from starius/downgrade-deps
go.mod: downgrade deps for litd release
2025-10-31 11:12:36 -03:00
András Bánki-Horváth
0a182ee308
Merge pull request #1029 from bhandras/resume-stuck-swaps
loop: add resume manager
2025-10-31 15:01:28 +01:00
Boris Nagaev
7d58b65a84
go.mod: downgrade deps for litd release
lnd v0.19.3-beta
tapd v0.6.1
go 1.23.12 (except in tools/ where golangci-lint needs Go 1.24)

Remove docs generators as cli-docs depends on Go 1.24.
2025-10-31 10:23:52 -03:00
Boris Nagaev
6c8bb7f8e2
Merge pull request #1030 from starius/check-experimental-in-instant
loopd: fix crash in instant if no --experimental
2025-10-31 10:01:05 -03:00
Boris Nagaev
325441bf47
loopd: fix crash in instant if no --experimental
Previously the daemon crashed with a panic. Now the CLI returns the following
message:

[loop] rpc error: code = Unimplemented desc = Restart loop with --experimental
2025-10-31 01:36:22 -03:00
Andras Banki-Horvath
79af5b3703
loop: add notification versioning 2025-10-30 22:41:00 +01:00
Andras Banki-Horvath
460fc116d8
loop: add resume manager 2025-10-30 22:41:00 +01:00
Boris Nagaev
ded8ab5975
Merge pull request #1026 from starius/client-yaml
looprpc: add instantout and static to client.yaml
2025-10-30 10:23:30 -03:00
Alex Bosworth
dc0bb360c5
version: bump version to v0.31.5-beta 2025-10-28 07:46:32 -07:00
Boris Nagaev
854f0a2396
looprpc: add instantout and static to client.yaml 2025-10-28 00:48:54 -03:00
Boris Nagaev
e173834a68
Merge pull request #1025 from starius/static-amt
cli: rename --amount to --amt in static
2025-10-26 16:09:12 -03:00
Boris Nagaev
ef8b7b7dc2
cli: rename --amount to --amt in static
loop static in --amt
loop static withdraw --amt

This is done to make it consistent with other commands and products.

Keep --amount flag as an alias.
2025-10-26 15:07:30 -03:00
Boris Nagaev
ab81cebd14
Merge pull request #1023 from starius/cli-fix-amount-and-feerate
cli: fix --amount flag in static in and withdraw
2025-10-25 10:38:02 -03:00
Boris Nagaev
83cbc7e30f
cli: fix --amount flag in static in and withdraw
Also fix --sat_per_vbyte flag.

All these flags were accessed using wrong type (signed vs unsigned int).
Previous version always parsed them as 0 even when set.

Regenerate the manual.
2025-10-24 19:39:46 -03:00
Alex Bosworth
7e0797e4af
Merge pull request #1010 from lightninglabs/alexbosworth-patch-9
version: bump version to v0.31.4-beta
2025-10-16 07:46:35 -07:00
Boris Nagaev
db907aa623
Merge pull request #1022 from starius/parallel-presign
sweepbatcher: presign transactions in parallel
2025-10-15 11:46:46 -03:00
Boris Nagaev
b458c5ebd8
go.mod: fix taproot-assets commit
Loop was pinned to commit c44e078c33e0 (tapchannel: support stxo on aux sweeper)
which was merged into "main" branch of taproot-assets as e6ae082c0b4b.
2025-10-14 23:16:10 -03:00
Boris Nagaev
abf3bb4abf
sweepbatcher: presign transactions in parallel
If a SignTx call is slow, the whole presign() function could timeout if all
the calls are done sequentially. In this commit each call is done in a separate
goroutine to reduce total latency.
2025-10-14 22:37:18 -03:00
Boris Nagaev
03de0a8ed7
Merge pull request #1021 from GeorgeTsagk/bump-lnd-20.0
build: bump deps
2025-10-13 22:19:13 -03:00
Boris Nagaev
4458577194
Merge pull request #1020 from starius/sweepbatcher-change-outputs-fees-fix
sweepbatcher: fix change fee accounting, add test
2025-10-13 11:05:46 -03:00
George Tsagkarelis
eac843e968
build: bump deps 2025-10-13 11:08:12 +02:00
Boris Nagaev
1f15c604ac
sweepbatcher: fix fee rate calculation (publish)
We forgot to account for change outputs when checking the feerate of
signed transaction. The bug resulted in fee rate overestimation in the
log message.
2025-10-11 22:15:56 -03:00
Boris Nagaev
a5871d6f3e
sweepbatcher: fix change fee accounting, add test
Presigned sweeps that produce a change output misreported the on-chain fee.
The fee portion was derived from the total swept amount minus only the
first transaction output, so any change output was treated as additional fee.
Update getFeePortionForSweep to subtract the value of every tx output so
the fee portion reflects only the actual miner fee paid. Add regression
coverage that sweeps a presigned input with change and asserts the spend
and confirmation notifications report the corrected fee.
2025-10-11 15:21:30 -03:00
Slyghtning
719355211f
Merge pull request #1017 from hieblmi/show-deposits
staticaddr: more fields in StaticAddressLoopInResponse
2025-10-09 11:59:51 +02:00
Slyghtning
de2964efba
loopd: refactor blocks-until-expiry calculation 2025-10-09 09:14:43 +02:00
Slyghtning
0d3a4c8a19
loopd: more info in StaticAddressLoopInResponse 2025-10-08 21:34:48 +02:00
Slyghtning
d133a43e22
looprpc: add more fields to StaticAddressLoopInResponse 2025-10-08 21:34:48 +02:00
Slyghtning
cd225d38d9
Merge pull request #1015 from hieblmi/static-fixes
staticaddr: signet testing fixes
2025-10-08 17:10:34 +02:00
Slyghtning
152385885f
staticaddr: exclude close-to-expiry depositis from SelectDeposits 2025-10-08 16:24:46 +02:00
Slyghtning
9f57c8ee01
loopin: add loop-in constants to filter expired deposits 2025-10-08 11:38:37 +02:00
Slyghtning
e70d347ae9
cmd: display correct Receive off-chain amount 2025-10-08 11:38:37 +02:00