Commit graph

1857 commits

Author SHA1 Message Date
Andras Banki-Horvath
565acbb83f
looprpc: extend liquidity params with fast publication 2025-04-29 18:56:48 +02:00
Boris Nagaev
7fb745954b
Merge pull request #932 from starius/fix-ci
Fix CI
2025-04-29 12:32:10 -03:00
Boris Nagaev
809586c86f
run make rpc 2025-04-29 11:21:54 -03:00
Boris Nagaev
4ab8a80db5
swapserverrpc: bump Go to 1.18
Protobuf v1.34.2 generates Go files that fail to compile with Go 1.16:
predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)

Also ran "go mod tidy".
2025-04-29 11:21:53 -03:00
Boris Nagaev
56c960444e
Revert "Revert "make mod-check: run in sub-modules, GOPROXY=direct""
This reverts commit 7b0c383f8c.

Access to git.sr.ht/~sbinet/gg was restored, so the check now passes.
2025-04-29 10:29:34 -03:00
András Bánki-Horváth
49aef8ab8c
Merge pull request #931 from lightninglabs/dependabot/go_modules/looprpc/golang.org/x/net-0.38.0
build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 in /looprpc
2025-04-29 13:13:40 +02:00
Boris Nagaev
664cde23ce
swapserverrpc: update protobuf to v1.34.2 2025-04-28 21:17:37 -03:00
dependabot[bot]
9553bec620
build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 in /looprpc
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 19:00:51 +00:00
Slyghtning
903266ab6e
Merge pull request #892 from hieblmi/resign-withdrawal
staticaddr: allow rbf'ing withdrawal transactions
2025-04-28 20:13:09 +02:00
Slyghtning
b5af507c6b
staticaddr: don't ignore output-already-spent publish error 2025-04-28 19:43:29 +02:00
Slyghtning
ff44b3b640
staticaddr: log deposit state transition only if executed 2025-04-28 19:43:29 +02:00
Slyghtning
82e34a6d5e
staticaddr: allow rbf'ing withdrawal transactions 2025-04-28 19:43:28 +02:00
Slyghtning
3d1ba4e24b
Merge pull request #930 from ffranr/mv-perms-into-looprpc
perms: move perms.go into looprpc
2025-04-28 19:43:04 +02:00
Boris Nagaev
7b0c383f8c
Revert "make mod-check: run in sub-modules, GOPROXY=direct"
This reverts commit d7d9e2d249.
2025-04-28 12:56:21 -03:00
ffranr
64e6bbd451
perms: move perms.go into looprpc
The Lightning Node Connect (LNC) WASM client currently imports both
`looprpc` and the entire `loop` module to access `perms.go`. This
creates problems because `loop` imports `taproot-assets`, resulting in
too many symbols for the WASM build.

To fix this, we will move `perms.go`—which defines RPC endpoint
permissions—into `looprpc`. After this change, the LNC WASM client will
import only `looprpc`, while the rest of `loop` can continue importing
`taproot-assets` without affecting the LNC WASM build.
2025-04-28 12:56:21 -03:00
Oliver Gugger
7e81916829
Merge pull request #924 from lightninglabs/lndclient-listchannels
mod+liquidity+test: update to latest lndclient+tapd
2025-04-25 08:52:36 +02:00
Oliver Gugger
c70dcc5449
mod+liquidity+test: update to latest lndclient+tapd
Required to build litd with the latest lnd+tapd.
2025-04-25 08:38:03 +02:00
Boris Nagaev
872137e3c7
Merge pull request #928 from lightninglabs/dependabot/go_modules/golang.org/x/net-0.38.0
build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0
2025-04-24 13:08:24 -03:00
dependabot[bot]
1a4ca9e372
build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-24 14:36:11 +00:00
Boris Nagaev
d55b4ab1aa
Merge pull request #926 from starius/fix-protos
looprpc: fix several minor bugs
2025-04-24 11:34:57 -03:00
Boris Nagaev
1af9cb793b
staticaddr: don't rename swapserverrpc to looprpc 2025-04-24 11:19:59 -03:00
Boris Nagaev
6d3f65a0f2
looprpc: rename field in WithdrawDepositsResponse
It returns an address, but the field was called pk_script, which was confusing.
Also renamed it in the code.
2025-04-24 11:19:59 -03:00
Boris Nagaev
d7d9e2d249
make mod-check: run in sub-modules, GOPROXY=direct
GOPROXY=direct is needed to capture the issue with tags force-pushes.
2025-04-24 11:19:59 -03:00
Boris Nagaev
1480536132
looprpc: update swapserverrpc to v1.0.13
swapserverrpc/v1.0.11 was force-pushed causing build errors with GOPROXY=direct.

Also updated in main go.mod, however it didn't fail, because replace to local
dir is used.
2025-04-24 11:19:59 -03:00
Boris Nagaev
a852596582
go.mod: re-pin taproot-assets to a commit in main 2025-04-24 11:19:59 -03:00
Boris Nagaev
f2715e39eb
ci: fix 'make rpc' check
'git describe' may not work in CI because of Git shallow clones.
We got false negative of this check:
https://github.com/lightninglabs/loop/actions/runs/14556035205/job/40959214856
"fatal: No names found, cannot describe anything."
2025-04-24 11:19:59 -03:00
Boris Nagaev
301c4756b4
looprpc: run 'make rpc' 2025-04-24 11:19:59 -03:00
András Bánki-Horváth
802e3f67f7
Merge pull request #925 from lightninglabs/update-to-v0.31.0-beta
version: bump version to v0.31.0-beta
2025-04-24 15:07:30 +02:00
Alex Bosworth
1b214ca175
version: bump version to v0.31.0-beta 2025-04-23 07:42:34 -07:00
András Bánki-Horváth
7a620ea4ae
Merge pull request #912 from kornpow/listswaps_paginate
add simple pagination to the ListSwaps command
2025-04-22 19:59:54 +02:00
Sam Korn
6b3f270417
ListSwap Update: Update release note 2025-04-19 22:31:45 -06:00
Sam Korn
5cc119b610
looprpc: add test for ListSwaps pagination and filtering 2025-04-19 22:31:45 -06:00
Sam Korn
b55521cb41
looprpc: add simple pagination to the ListSwaps command
This commit adds the ability to set a max_swaps and an index_offset
flag to the ListSwaps command. These new fields are applied AFTER
the initial filtering step. The response also now passes additional
information about the index count and total swaps filtered.
2025-04-19 22:31:45 -06:00
Boris Nagaev
84820f2d4f
Merge pull request #917 from starius/register-conf-initiation-height
sweepbatcher: fix height hint for confirmations
2025-04-06 15:56:26 -03:00
Boris Nagaev
4c26aefe80
sweepbatcher: fix height hint for confirmations
Previously, we passed the current best block height as the height hint to
RegisterConfirmationsNtfn. If Loop was shut down when a sweep was confirmed
and restarted later, it would use the current best height as the hint. This
caused the confirmation to be missed, since it had already occurred before
that height.

This commit fixes the issue by passing the initiation height of the swap as the
height hint instead. This is consistent with what we do in other places where
we use RegisterConfirmationsNtfn.

Since LND caches previously passed height hints for RegisterConfirmationsNtfn
and uses maximum passed value, to actually recover in such a condition, one has
to restart LND passing the option --height-hint-cache-query-disable and then
restart Loop applying this fix. If a pruned bitcoind backend is used, this might
not work.
2025-04-05 18:01:16 -03:00
Boris Nagaev
ec2bf44e46
Merge pull request #916 from starius/loop-cli-prevent-unknown-flags
cmd/loop: crash if unknown flags are provided
2025-04-05 15:24:29 -03:00
Boris Nagaev
91ff83a0b4
Merge pull request #915 from starius/fix-migration-13
loopdb: fix migration 13 for Postgres
2025-04-04 18:17:16 -03:00
Boris Nagaev
023ac009c0
cmd/loop: crash if unknown flags are provided
Verify the number of positional arguments if they were provided to crash in
such scenarios:
$ loop out 250000 --xxx
$ loop in 250000 1000
These commands used to work ignoring the last argument.
2025-04-04 17:45:12 -03:00
Boris Nagaev
38b7ecdb9d
loopdb: fix migration 13 for Postgres
Don't copy values of ID column from sweeps to sweeps2 and let it auto-assign
values there. This is needed for the sequencer for that column to be up-to-date
with the values.
2025-04-04 16:31:57 -03:00
András Bánki-Horváth
bfe7991c4e
Merge pull request #914 from bhandras/ldflags-extended-commit
build+loop: add the commit hash to `GetInfoResponse` and change version semantics
2025-04-04 13:01:16 +02:00
Andras Banki-Horvath
9a6266f9f7
loop: add the commit_hash to GetInfoResponse, change version semantics
With this commit we extend GetinfoResponse with the strict commit hash
(which also includes whether the build tree was clean or dirty).
2025-04-04 12:47:30 +02:00
Andras Banki-Horvath
f72cdde58f
build: use the stripped commit hash for the embedded commit string 2025-04-04 12:47:30 +02:00
Boris Nagaev
46b4f56766
Merge pull request #911 from starius/group
sweepbatcher: allow adding groups of inputs
2025-04-03 10:07:09 -03:00
Boris Nagaev
e8cf6386cc
sweepbatcher: allow adding groups of inputs
A group of inputs can be added by passing it in SweepRequest.Inputs field.
All the inputs belong to the same swap and are added to the same batch.
2025-04-03 09:49:46 -03:00
Boris Nagaev
dc7261be4a
Merge pull request #910 from starius/sweepbatcher-initial-delay-func
sweepbatcher: customize initialDelay per sweep
2025-04-03 09:42:18 -03:00
Boris Nagaev
472bec0be5
sweepbatcher: customize initialDelay per sweep
Option WithInitialDelay now accepts a function returning initialDelay
depending on sweep's data.

This is needed to be able to wait longer for sweeps with low priority, but
still sweeping high priority sweeps soon.
2025-04-03 09:22:58 -03:00
András Bánki-Horváth
00063418bd
Merge pull request #901 from gcaracuel/cli_env_global_flags
loop: Global flags to accept ENV vars overrides.
2025-04-01 18:16:12 +02:00
Boris Nagaev
e4f5cc72c0
Merge pull request #906 from starius/sweepbatcher-outpoint
sweepbatcher: allow swap_hash to be non-unique
2025-04-01 12:44:42 -03:00
Boris Nagaev
c80ebb96e9
sweepbatcher: allow swap_hash to be non-unique
SwapHash used to be a key in the sweeps table. Now the key is outpoint which
replaces columns outpoint_txid and outpoint_index. In-memory structures and unit
tests were also updated to use outpoint as key. Outpoint is truly unique.
2025-04-01 11:11:44 -03:00
Slyghtning
c3fa12ef23
Merge pull request #907 from hieblmi/static-regtest
regtest: adding aperture docker instance
2025-03-31 14:05:08 +02:00