Commit graph

2210 commits

Author SHA1 Message Date
Slyghtning
f47b611557
looprpc: extend client.proto with lnrpc.OutPoint and lnrpc.OpenChannelRequest
In this commit we import the lnd's lightning.proto into client.proto to
then be able to use lnrpc.OutPoint and lnrpc.OpenChannelRequest instead
of the looprpc.OutPoint type.
This is safe because the lnrpc and looprpc versions of OutPoint are the
same type.
2026-02-26 09:37:26 +01:00
Slyghtning
6aaacf8b93
looprpc: prepare for lnrpc usage
In successive commits we want to access lnrpc specifc methods
and objects, so here we import github.com/lightningnetwork/lnd v0.20.1-beta
into looprpc and update relevant versions.
2026-02-26 09:35:59 +01:00
George Tsagkarelis
6a2a863bed
Merge pull request #1071 from lightninglabs/alexbosworth-patch-12
version: bump version to v0.31.8-beta
2026-02-03 19:49:45 +01:00
Alex Bosworth
d2699ee7cc
version: bump version to v0.31.8-beta
bump version to v0.31.7-beta
2026-02-03 10:00:53 -08:00
Boris Nagaev
9590fafae8
Merge pull request #1066 from starius/sweephtlc5
Add a command to manually sweep loop-out HTLC
2026-02-03 12:38:25 -05:00
Boris Nagaev
579ea31979
cmd/loop: add command "loop out sweephtlc"
The command is hidden, it is not for everyday use.
2026-01-29 17:40:58 -05:00
Boris Nagaev
59140265ca
loopd: implement SweepHtlc RPC 2026-01-29 17:40:58 -05:00
Boris Nagaev
0b53296aa8
multi: factor out sweep fee clamping function 2026-01-15 03:06:22 -05:00
Boris Nagaev
9ee7a36f37
looprpc: add new method SweepHtlc 2026-01-15 03:06:22 -05:00
Slyghtning
1f1f668c5c
Merge pull request #1063 from starius/instantout-fix-log
reservation: fix log line
2026-01-07 13:27:41 +01:00
Boris Nagaev
edbef4987a
reservation: fix log line
Previously the log was corrupted:
confirmed in tx: &{2 [0xc000e802a0] [0xc00087fb80 0xc00087fba0] 205}
2025-12-21 12:53:40 -03:00
Slyghtning
1bdaff887c
Merge pull request #1058 from hieblmi/minor-fixes
multi: fix `staticcheck` flags
2025-12-20 06:49:08 +01:00
Boris Nagaev
d1c4a7da8a
loopd: test error reporting logic 2025-12-20 06:31:02 +01:00
Boris Nagaev
360af61005
loopdb: test error handling for bbolt.Open 2025-12-19 14:17:16 -03:00
Slyghtning
417e25463d
sweepbatcher: fix style issues in sweep_batcher_test.go
- Rename testPublishError to errTestPublish (ST1012)
- Add explicit type to all constants in const groups (SA9004)
- Fixes staticcheck style warnings
2025-12-19 10:18:09 +01:00
Slyghtning
76df55b240
loop: fix error return order in loopin_test.go
- Change return signature of startNewLoopIn from (*swapConfig, error, *loopInSwap) to (*swapConfig, *loopInSwap, error)
- Fixes ST1008: error should be returned as the last argument
2025-12-19 10:18:09 +01:00
Slyghtning
f4e7e676d4
loopd: fix errors.Is argument order 2025-12-19 10:18:09 +01:00
Slyghtning
5ec5875dd7
cmd: replace grpc.DialContext with grpc.NewClient 2025-12-19 10:18:08 +01:00
Slyghtning
175b7d601b
loooprpc: replace deprecated grpc.Dial with grpc.NewClient
- Update assets/client.go to use grpc.NewClient
- Update swap_server_client.go to use grpc.NewClient
- Replace grpc.WithInsecure() with insecure.NewCredentials()
2025-12-19 10:03:14 +01:00
Slyghtning
a3db145ced
loop: delete unused file uncharge_state.go 2025-12-18 08:55:27 +01:00
Slyghtning
34415750fb
Merge pull request #1059 from hieblmi/reregister
staticaddr: re-register on htlc tx conf error
2025-12-18 08:54:20 +01:00
Boris Nagaev
258d33cce5
staticaddr: clear stale HTLC confs on re-register
- reset htlcConfirmed when the HTLC conf subscription errors and we re-register
- add regression test ensuring re-registers after a conf error require a fresh
  confirmation instead of sweeping on a stale one
2025-12-17 10:11:30 +01:00
Boris Nagaev
f6ac0b5ebe
staticaddr: surface invoice subscription errors
- propagate invoice subscription errors in MonitorInvoiceAndHtlcTx via
  HandleError instead of silently logging
- add regression tests covering HTLC conf re-registration and invoice
  subscription error propagation
2025-12-17 10:10:31 +01:00
Boris Nagaev
f274c689b1
staticaddr: add unit test for HTLC re-registration 2025-12-17 09:21:51 +01:00
Slyghtning
1dd145bc32
staticaddr: re-register on htlc tx conf error 2025-12-17 09:21:51 +01:00
Slyghtning
2ed9e5bde6
Merge pull request #1061 from ViktorT-11/2025-12-replace-litd-swapserverrpc-dep
workflow: replace `swapserverrpc` in `lit-setup`
2025-12-17 08:42:29 +01:00
Viktor Torstensson
a0850f7e35
workflow: replace swapserverrpc in lit-setup
In order for the LiT CI jobs to use the `swapserverrpc` protos that
exist on the latest `master` version of the `loop` repo, we need to
update the `lit-setup` action to replace the litd `swapserverrpc`
dependency with the latest version that exists in the `loop` repo.
2025-12-16 16:47:57 +01:00
Slyghtning
c3f3199625
Merge pull request #1043 from hieblmi/withdraw-psbt
staticaddr: psbt withdrawals
2025-12-09 13:30:15 +01:00
Slyghtning
780584993b
staticaddr: unit test CalculateWithdrawalTxValues 2025-12-09 12:21:51 +01:00
Slyghtning
880694c8df
staticaddr: harden and test signMusig2Tx 2025-12-09 12:21:51 +01:00
Slyghtning
078399da80
staticaddr: replace ServerWithdrawDeposits rpc /w ServerPsbtWithdrawDeposits 2025-12-09 12:21:51 +01:00
Slyghtning
a918842374
staticutil: refactor methods into utils 2025-12-09 12:21:51 +01:00
Slyghtning
e77dc53760
swapserverrpc: deprecate ServerWithdrawDeposits 2025-12-09 12:21:50 +01:00
Slyghtning
29ea8234df
swapserverrpc: psbt-base ServerWithdraw endpoint 2025-12-09 12:21:50 +01:00
Boris Nagaev
e79b1d445d
Merge pull request #1044 from starius/sweepbatcher-db-tx
sweepbatcher: persist confirmed batches atomically
2025-12-04 15:05:34 -03:00
Boris Nagaev
6d58965930
sweepbatcher: persist confirmed batches atomically
Fixes a crash window where handleConf updated the batch row to confirmed but
failed before marking sweeps complete, so re-added sweeps spawned a duplicate
batch or kept retrying. Batch confirmation and sweep completion are now
persisted inside a single DB transaction ConfirmBatchWithSweeps, and handleConf
uses the helper to atomically store the batch and the set of confirmed sweeps.

Added TestSweepBatcherConfirmedBatchIncompleteSweeps that runs against the real
loopdb backend, injects a failure mid-transaction, and verifies the database
never ends up with confirmed=true batches paired with completed=false sweeps.
2025-12-04 00:37:01 -03:00
Alex Bosworth
f76c15ca16
Merge pull request #1051 from lightninglabs/alexbosworth-patch-11
version: bump version to v0.31.7-beta
2025-11-26 07:53:21 -08:00
Alex Bosworth
bde27d0059
version: bump version to v0.31.7-beta
bump version to 0.31.7
2025-11-26 07:44:51 -08:00
Slyghtning
2cdf084cd9
Merge pull request #1050 from ffranr/add-ci-lit-test
Add LiT CI job and runner cleanup action
2025-11-26 10:21:03 +01:00
ffranr
d56fb5b542
ci: split out postgres unit-test run for parallelism 2025-11-26 08:45:35 +00:00
ffranr
d00bfab643
ci: bump actions/checkout to v4 2025-11-26 08:45:35 +00:00
ffranr
3dd747460a
ci: add LiT tests workflow to GitHub Actions
Add a new workflow to run tests for the LiT repository. This includes
setting up dependencies, cloning the repository, and updating the
`go.mod` file to use local Loop modules.
2025-11-26 08:45:35 +00:00
Slyghtning
83628d775d
Merge pull request #1016 from hieblmi/easy-exclude-peers
easyautoloop: exclude peers
2025-11-24 13:12:55 +01:00
Slyghtning
70c95139e9
docs: update easy-exclude parameters 2025-11-21 15:44:51 +01:00
Slyghtning
afa52aa40d
liquidity: test --excludeeasypeer and --includealleasypeers 2025-11-21 15:38:13 +01:00
Slyghtning
7fc07ae99b
cmd: add --includealleasypeers 2025-11-21 15:38:12 +01:00
Slyghtning
bb8ee54817
cmd: exclude peers for easy autoloop 2025-11-21 15:34:49 +01:00
Slyghtning
854cac246e
liquidity: exclude peers for easy autoloop 2025-11-21 15:05:52 +01:00
Slyghtning
ea21d8d8f2
looprpc: exclude peers for easy autoloop 2025-11-21 15:05:51 +01:00
Boris Nagaev
62419ab17d
Merge pull request #1048 from starius/loop-stop
cli: add command "loop stop"
2025-11-20 23:33:35 -03:00