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
Slyghtning
64b1aedace
regtest: add static loop-in to README.md
2025-03-31 13:48:32 +02:00
Slyghtning
30832978c7
regtest: adding aperture docker instance
2025-03-31 13:48:30 +02:00
Alex Bosworth
e734d69b18
Merge pull request #909 from lightninglabs/alexbosworth-patch-9
...
version: bump version to v0.30.0-beta
2025-03-27 07:28:59 -07:00
Alex Bosworth
0ed99e252d
version: bump version to v0.30.0-beta
2025-03-26 18:40:26 -07:00
Slyghtning
3845bded2a
Merge pull request #908 from hieblmi/non-blocking-depo-recovery
...
staticaddr: non-concurrent deposit recovery
2025-03-26 16:43:39 +01:00
Slyghtning
8401ca58be
staticaddr: non-concurrent deposit recovery
2025-03-26 15:33:19 +01:00
Konstantin Nick
612c7047f1
Merge pull request #886 from sputn1ck/asset_autoloop_1
...
Add simple asset autoloop
2025-03-25 15:58:39 +01:00
sputn1ck
439d64a08a
liquidity: skip asset channels in easy autoloop
2025-03-25 15:27:54 +01:00
sputn1ck
014e919402
liquidity: add asset loop out unit test
2025-03-25 15:27:54 +01:00
sputn1ck
e7b2836605
liquidity: test move p2wkh to const
2025-03-25 15:27:53 +01:00
sputn1ck
98e6bf08c7
cmd: add debug forceautoloop cmd
2025-03-25 15:27:53 +01:00
sputn1ck
1dc1192282
cmd: add easy autoloop asset flags
2025-03-25 15:27:53 +01:00
sputn1ck
6e49e3710c
loopd: add asset client to autoloop cfg
2025-03-25 15:27:53 +01:00
sputn1ck
a10b483096
loopd: move asset client to config
2025-03-25 15:27:53 +01:00
sputn1ck
9f7249f14f
asset: add function to get asset price
2025-03-25 15:27:52 +01:00
sputn1ck
3c79e9d028
liquidity: add easy asset autoloop out
2025-03-25 14:02:09 +01:00
sputn1ck
e3f049ae6f
liquidity: add asset swap info to swap builder
2025-03-25 11:15:41 +01:00
sputn1ck
832a0526d6
liquidity: add easy asset params
2025-03-25 11:15:41 +01:00
András Bánki-Horváth
4ef15d6668
Merge pull request #904 from lightninglabs/dependabot/go_modules/github.com/golang-jwt/jwt/v4-4.5.2
2025-03-21 23:59:21 +01:00
dependabot[bot]
371fcfaf35
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2
...
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt ) from 4.5.1 to 4.5.2.
- [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.5.1...v4.5.2 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-21 22:38:19 +00:00
Boris Nagaev
da312d310c
Merge pull request #903 from starius/sweepbatcher-error-details
...
sweepbatcher: add more details to errors
2025-03-21 11:36:13 -03:00
Boris Nagaev
90e36b5b71
sweepbatcher: add more details to errors
...
This is useful to debug errors from logs, to follow error propagation path.
2025-03-21 10:58:07 -03:00
Slyghtning
cecb24c673
Merge pull request #902 from hieblmi/fix-deadlock
...
staticaddr: lock mutex for active deposits access
2025-03-21 14:53:38 +01:00
Slyghtning
679ba13608
staticaddr: don't lock active deposits across state transition
2025-03-21 11:17:57 +01:00