Commit graph

2538 commits

Author SHA1 Message Date
bitromortac
c478f8227a terminal: gate wallet-ready status on lnd's actual RPC readiness
readyChan/unlockChan only guarantee lnd's gRPC listener socket is bound,
not that lnd's RPC interceptor has left WAITING_TO_START. Callers that
poll litd's status (itest's WaitForLNDWalletReady, litcli status, the UI)
could observe "Wallet Ready" and then immediately hit a "waiting to
start, RPC services not available" error, which was the root cause of a
flake in TestLightningTerminal/.../terminal_stateless_init_mode (CI run
29286599979, PR #1322). Poll lnd's StateService, which is exempt from
both the macaroon and RPC-readiness checks, until it reports leaving
WAITING_TO_START before advertising the wallet as ready.
2026-07-16 09:53:44 +00:00
Viktor Torstensson
8efa0e0656
Merge pull request #1352 from ViktorT-11/2026-07-bump-protobuf
Some checks are pending
CI / frontend tests on macOS-latest (push) Waiting to run
CI / frontend tests on ubuntu-latest (push) Waiting to run
CI / frontend tests on windows-latest (push) Waiting to run
CI / backend build on macOS-latest (push) Waiting to run
CI / backend build on ubuntu-latest (push) Waiting to run
CI / backend build on windows-latest (push) Waiting to run
CI / cross compilation (push) Waiting to run
CI / cross compilation-1 (push) Waiting to run
CI / cross compilation-2 (push) Waiting to run
CI / RPC proto compilation check (push) Waiting to run
CI / check commits (push) Waiting to run
CI / Sqlc check (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (push) Waiting to run
CI / run unit tests-1 (push) Waiting to run
CI / run unit tests-2 (push) Waiting to run
CI / run unit tests-3 (push) Waiting to run
CI / build itest binaries (push) Waiting to run
CI / integration test (push) Blocked by required conditions
CI / integration test-1 (push) Blocked by required conditions
CI / integration test-2 (push) Blocked by required conditions
CI / check release notes updated (push) Waiting to run
build: bump `protobuf-go-hex-display`
2026-07-15 11:36:10 +02:00
Viktor Torstensson
324f87d7da
build: bump protobuf-go-hex-display
Bump protobuf-go-hex-display to version v1.36.11-hex-display.
2026-07-14 23:08:07 +02:00
Viktor Torstensson
767250e982
Merge pull request #1350 from lightninglabs/update-sqldb-v2
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
build: bump sqldb/v2 to v2.0.0
2026-07-13 17:15:28 +02:00
Viktor Torstensson
95f1ba71e9
Merge pull request #1351 from lightninglabs/bump-go-1.25.11
build: bump go to v1.25.11
2026-07-13 17:12:24 +02:00
ziggie
2a4a57b55b
build: bump sqldb/v2 to v2.0.0 2026-07-10 19:34:19 -03:00
ziggie
41a6c8b3f7
build: bump go to v1.25.11 2026-07-10 19:24:26 -03:00
bitromortac
9bfcdbe9ae
Merge pull request #1333 from Cyberguru1/fix-itest-process-leak
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
itest: fix flaky testRequestLoggerDisable node cleanup
2026-07-10 08:33:52 +02:00
Viktor Torstensson
3c035fe862
Merge pull request #1337 from 0xfandom/fix/1091-litd-version
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
config: make litd -V report litd version
2026-07-08 19:33:35 +02:00
Viktor Torstensson
1093de57b4
Merge pull request #1347 from lightninglabs/dependabot/go_modules/tools/golang.org/x/crypto-0.52.0
build(deps): bump golang.org/x/crypto from 0.45.0 to 0.52.0 in /tools
2026-07-08 19:33:07 +02:00
dependabot[bot]
b3e7b2fc57
build(deps): bump golang.org/x/crypto from 0.45.0 to 0.52.0 in /tools
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.45.0 to 0.52.0.
- [Commits](https://github.com/golang/crypto/compare/v0.45.0...v0.52.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.52.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-07 17:17:15 +00:00
Viktor Torstensson
4baf098cdf
Merge pull request #1346 from lightninglabs/dependabot/go_modules/golang.org/x/net-0.55.0
Some checks are pending
CI / frontend tests on macOS-latest (push) Waiting to run
CI / frontend tests on ubuntu-latest (push) Waiting to run
CI / frontend tests on windows-latest (push) Waiting to run
CI / backend build on macOS-latest (push) Waiting to run
CI / backend build on ubuntu-latest (push) Waiting to run
CI / backend build on windows-latest (push) Waiting to run
CI / cross compilation (push) Waiting to run
CI / cross compilation-1 (push) Waiting to run
CI / cross compilation-2 (push) Waiting to run
CI / RPC proto compilation check (push) Waiting to run
CI / check commits (push) Waiting to run
CI / Sqlc check (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (push) Waiting to run
CI / run unit tests-1 (push) Waiting to run
CI / run unit tests-2 (push) Waiting to run
CI / run unit tests-3 (push) Waiting to run
CI / build itest binaries (push) Waiting to run
CI / integration test (push) Blocked by required conditions
CI / integration test-1 (push) Blocked by required conditions
CI / integration test-2 (push) Blocked by required conditions
CI / check release notes updated (push) Waiting to run
build(deps): bump golang.org/x/net from 0.49.0 to 0.55.0
2026-07-07 19:15:04 +02:00
dependabot[bot]
053498caba
build(deps): bump golang.org/x/net from 0.49.0 to 0.55.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.49.0 to 0.55.0.
- [Commits](https://github.com/golang/net/compare/v0.49.0...v0.55.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-06 19:42:23 +00:00
Viktor Torstensson
512617bfa2
Merge pull request #1345 from lightninglabs/dependabot/go_modules/perms/github.com/opencontainers/runc-1.3.6
Some checks are pending
CI / frontend tests on macOS-latest (push) Waiting to run
CI / frontend tests on ubuntu-latest (push) Waiting to run
CI / frontend tests on windows-latest (push) Waiting to run
CI / backend build on macOS-latest (push) Waiting to run
CI / backend build on ubuntu-latest (push) Waiting to run
CI / backend build on windows-latest (push) Waiting to run
CI / cross compilation (push) Waiting to run
CI / cross compilation-1 (push) Waiting to run
CI / cross compilation-2 (push) Waiting to run
CI / RPC proto compilation check (push) Waiting to run
CI / check commits (push) Waiting to run
CI / Sqlc check (push) Waiting to run
CI / lint (push) Waiting to run
CI / run unit tests (push) Waiting to run
CI / run unit tests-1 (push) Waiting to run
CI / run unit tests-2 (push) Waiting to run
CI / run unit tests-3 (push) Waiting to run
CI / build itest binaries (push) Waiting to run
CI / integration test (push) Blocked by required conditions
CI / integration test-1 (push) Blocked by required conditions
CI / integration test-2 (push) Blocked by required conditions
CI / check release notes updated (push) Waiting to run
build(deps): bump github.com/opencontainers/runc from 1.2.8 to 1.3.6 in /perms
2026-07-06 21:40:59 +02:00
Viktor Torstensson
8f6c8a968e
Merge pull request #1342 from lightninglabs/dependabot/go_modules/litrpc/github.com/opencontainers/runc-1.3.6
build(deps): bump github.com/opencontainers/runc from 1.2.8 to 1.3.6 in /litrpc
2026-07-06 21:39:18 +02:00
dependabot[bot]
4614ade31c
build(deps): bump github.com/opencontainers/runc in /perms
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.2.8 to 1.3.6.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.2.8...v1.3.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-04 05:23:17 +00:00
dependabot[bot]
e3091c9045
build(deps): bump github.com/opencontainers/runc in /litrpc
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.2.8 to 1.3.6.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.2.8...v1.3.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 13:12:40 +00:00
Viktor Torstensson
58568b5afc
Merge pull request #1340 from ViktorT-11/2026-07-improve-docker-space-cleanup
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
docker: improve cleanup of docker space in CI
2026-07-02 15:11:05 +02:00
Viktor Torstensson
4e72e798e6
docker: improve cleanup of docker space in CI
Mimic `lnd`s cleanup of docker space in CI by adding a new clean-space
job which removes the same docker related artifacts as `lnd` does prior
to running the rest of the docker.yml jobs.
2026-07-01 12:58:42 +02:00
Viktor Torstensson
08934deeef
Merge pull request #1331 from ViktorT-11/2026-06-cut-v0_17_0_final
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
Prepare for litd `v0.17.0-alpha` release
2026-06-30 17:15:06 +02:00
Viktor Torstensson
7a40162f84
Merge pull request #1338 from lightninglabs/dependabot/go_modules/github.com/opencontainers/runc-1.3.6
build(deps): bump github.com/opencontainers/runc from 1.2.8 to 1.3.6
2026-06-30 17:14:24 +02:00
0xfandom
bcdbe68fa1 config: make litd -V report litd's own version
The `-V` flag inherited from lnd printed the integrated lnd version
(`build.Version()`) instead of litd's own version, while litd's own
`--version` flag already reported the correct value via RichVersion().
Consolidate both flags so either one prints litd's version.

Fixes #1091

Signed-off-by: 0xfandom <kashyapshivank01@gmail.com>
2026-06-30 11:59:39 +05:30
dependabot[bot]
b4133b1a12
build(deps): bump github.com/opencontainers/runc from 1.2.8 to 1.3.6
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.2.8 to 1.3.6.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.2.8...v1.3.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 19:36:47 +00:00
Viktor Torstensson
8cd75e44d9
version: bump version to v0.17.0-alpha 2026-06-26 22:45:44 +02:00
Viktor Torstensson
569fdee4f4
docs: prepare release notes for v0.17.0-alpha 2026-06-26 22:45:44 +02:00
Viktor Torstensson
901d60cc0e
docs: update compatibility notes
Add `v0.16.1-alpha` & `v0.17.0-alpha` to the compatibility notes.
2026-06-26 22:45:21 +02:00
Viktor Torstensson
503201ffa7
perms: bump lnd to v0.21.1-beta 2026-06-26 22:39:55 +02:00
Viktor Torstensson
5032e33d35
litrpc: bump lnd and looprpc
Bump `lnd` to `v0.21.1-beta`. We also bump `looprpc` to the version
compatible with `loop` `v0.33.3-beta`.
2026-06-26 22:39:54 +02:00
Viktor Torstensson
5c34be31f4
terminal: bump lnd, loop, looprpc & swapserverrpc
Bump `lnd` to version `v0.21.1-beta`, as well as `loop` to version
`v0.33.3-beta`. Additionally, we bump `looprpc` & `swapserverrpc` to
versions compatible with the new `loop` version.
2026-06-26 22:39:54 +02:00
Viktor Torstensson
69eb14cc63
Merge pull request #1334 from 0xfandom/accounts/test-checklabel
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
accounts: add test coverage for checkLabel
2026-06-24 12:07:30 +02:00
0xfandom
163cccba89 test: add coverage for account checkLabel validation
checkLabel rejects labels that could be mistaken for a hex-encoded
account ID. Add a table-driven test covering the accepted cases (empty,
plain text, short hex, and non-hex strings of account-ID length) as well
as the rejected cases (lower- and upper-case hex strings of account-ID
length).

Signed-off-by: 0xfandom <kashyapshivank01@gmail.com>
2026-06-23 14:59:05 +05:30
Viktor Torstensson
916ca71d70
Merge pull request #1317 from Cyberguru1/custom-session-permissions
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
sessions: support entity:action format for custom sessions
2026-06-22 12:38:44 +02:00
cyberguru1
02a1b31303
itest: fix testRequestLoggerDisable node cleanup
The test node variable was reassigned in a later step. This broke the
deferred cleanup closure and leaked the reqlog-on node process.

The leaked process caused random cleanup timeouts under heavy test load.
Fixed by copying the node to a local variable before the defer.
2026-06-22 03:27:39 -05:00
cyberguru1
05d0566986 docs: add release note for session custom perms
Add a release note to the upcoming release notes document for 0.17.0
detailing the newly added support for custom permissions via the
`--permission` flag in `litcli sessions add`.
2026-06-22 01:50:56 -05:00
cyberguru1
484d5d789e itest: add custom permissions integration tests
Add a new sub-test case to verify that custom `entity:action`
permissions are correctly handled and enforced for LNC custom
sessions. The test uses the `info:read` permission to
assert that the connection can only query LND's GetInfo endpoint
and is blocked on other endpoints. Tests are added for both
integrated mode and remote mode suites.
2026-06-22 01:50:56 -05:00
cyberguru1
04f06144bd litcli: add custom session permission unit tests
Add comprehensive unit tests for the parsing and validation logic of
the custom permissions parser (`parseCustomPermissions`) in `litcli`.
2026-06-22 01:50:56 -05:00
cyberguru1
0b8fd17457 litcli: add custom permissions to session add
Add support for the `--permission` flag (which takes `entity:action`
pairs), similar to `lncli bakemacaroon`, when creating custom sessions
with `litcli sessions add`. Supports repeated flags, comma-separated
lists, and mixed input.
2026-06-22 01:50:56 -05:00
Viktor Torstensson
f78be1d0bd
Merge pull request #1326 from ViktorT-11/2026-06-dont-create-kvdb-databases-on-migration
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
[sql-75] Don't create kvdb database files in kvdb -> SQL migration if they don't exist
2026-06-17 00:59:20 +02:00
Viktor Torstensson
edbd4f51b4
Merge pull request #1330 from ViktorT-11/2026-06-stop-lnd-on-mig-prompt-abort
[sql-77] terminal: shut down LiT when declining the SQL migration prompt
2026-06-17 00:44:44 +02:00
Viktor Torstensson
51c56982fb
Merge pull request #1327 from ViktorT-11/2026-06-block-postgres-startup-if-sqlite-exists
[sql-76] config: block startup on mixed SQL backends
2026-06-17 00:44:28 +02:00
Viktor Torstensson
42c3105537
terminal: thread a context into postgresDatabaseExists 2026-06-16 21:45:47 +02:00
Viktor Torstensson
6d2bf233e8
config: block startup on mixed SQL backends
Reject `litd` startup when another SQL database exists than the selected
SQL `databasebackend` choice.

When starting with the `databasebackend` config flag set to `postgres`,
we check whether an `sqlite` database file exists at the default path
and fail startup if it does. When starting with `sqlite`, we instead
check whether `postgres` database configuration has been provided and,
if so, whether a database exists at the configured `postgres`
connection parameters.

This prevents accidental switches between SQL backends. This is
especially important because allowing such a switch would retrigger the
KVDB-to-SQL migration for the newly configured SQL backend. In that
scenario, the data would already have been migrated previously, meaning
the migration source would be stale and could result in outdated data
being imported. Additionally, it would create two divergent copies of
the data across separate SQL backends. Since we do not support
migrations between SQL backends, recovering from such a situation would
not be possible.
2026-06-16 21:45:47 +02:00
Viktor Torstensson
059554474e
db: skip SQL migration when no kvdb files exist
Avoid creating legacy bbolt database files when the kvdb-to-SQL
programmatic migration runs on a node that never had LiT kvdb state.

Note that we only skip the creating the database file if there is no
single bbolt database file. If for example there's only 1 existing
bbolt database file, we will still create the new bbolt database file
for the other 2 bbolt databases, as we for example need to pass the
accounts & session databases to the firewalldb migration, and we'd want
to avoid having the migrations become more complex by having to handle
the case where the other databases are missing.
2026-06-16 21:16:11 +02:00
Viktor Torstensson
27eba1e5c1
db: unify kvdb file existence checks
Add a tombstone helper for checking whether a legacy kvdb file exists on
disk, without inspecting any tombstone state inside the database.

Use this helper in the tombstone deprecation and activity checks so
missing-file handling is centralized in one place instead of being
reimplemented in each function.

We also export this helper function, as we'll use it in the upcoming
commit which checks if the legacy any bbolt database file exists before
attempting to migrate it.
2026-06-16 20:59:56 +02:00
Viktor Torstensson
d9b8d6d4b8
terminal: shut down on declined SQL migration
Treat a declined kvdb-to-SQL migration prompt as a startup-abort
condition that shuts litd down fully. This prevents litd from leaving
the status server running after the operator refuses the migration
prompt.

The reason why this is motivated, is that `litd` at this stage of the
startup process will not be ready to handle an `litcli stop` RPC call.
2026-06-16 20:49:23 +02:00
Viktor Torstensson
650fd92259
app: patch Loop proto import for local proto build
Rewrite Loop's lnd proto import during proto generation so make protos
continues to work with this repo's local proto layout.

This became necessary when Loop v0.32.0-beta started shipping the
looprpc/client.proto change from upstream commit
f47b6115571f6072fe68057cb4eff30cc4fc47df
("looprpc: extend client.proto with lnrpc.OutPoint and
lnrpc.OpenChannelRequest"). That update made the downloaded Loop proto
import lnrpc/lightning.proto, while LiT stores the downloaded lnd proto
locally as proto/lnd.proto and invokes protoc with ../proto as the
import root. As a result, the downloaded Loop proto overwrote the local
compatibility fix and make protos failed with
"lnrpc/lightning.proto: File not found".

Patch the downloaded proto in build-protos.js to import lnd.proto
instead, and keep proto/loop.proto aligned with the same import path.
This is needed because changing only the checked-in proto file is not
enough: the build script re-fetches and replaces it on every run.
2026-06-16 00:35:56 +02:00
Viktor Torstensson
1903010be5
Merge pull request #1320 from ViktorT-11/2026-06-cut-v0_17_rc1
Some checks failed
CI / frontend tests on macOS-latest (push) Has been cancelled
CI / frontend tests on ubuntu-latest (push) Has been cancelled
CI / frontend tests on windows-latest (push) Has been cancelled
CI / backend build on macOS-latest (push) Has been cancelled
CI / backend build on ubuntu-latest (push) Has been cancelled
CI / backend build on windows-latest (push) Has been cancelled
CI / cross compilation (push) Has been cancelled
CI / cross compilation-1 (push) Has been cancelled
CI / cross compilation-2 (push) Has been cancelled
CI / RPC proto compilation check (push) Has been cancelled
CI / check commits (push) Has been cancelled
CI / Sqlc check (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / run unit tests (push) Has been cancelled
CI / run unit tests-1 (push) Has been cancelled
CI / run unit tests-2 (push) Has been cancelled
CI / run unit tests-3 (push) Has been cancelled
CI / build itest binaries (push) Has been cancelled
CI / check release notes updated (push) Has been cancelled
CI / integration test (push) Has been cancelled
CI / integration test-1 (push) Has been cancelled
CI / integration test-2 (push) Has been cancelled
Prepare for litd `v0.17.0-alpha.rc1` release
2026-06-09 20:31:35 +02:00
Viktor Torstensson
6f89357c35
version: bump version to v0.17.0-alpha.rc1 2026-06-09 18:33:38 +02:00
Viktor Torstensson
782113f36b
docs: prepare release notes for v0.17.0-alpha.rc1 2026-06-09 18:33:38 +02:00
Viktor Torstensson
4b6b445dd7
migsets: increase maxListMacaroonIDAttempts to 120
Due to that certain wallet setups, such as `lnd.noseedbackup`, can take
a bit of time to open the `lnd` wallet, we need to increase the time we
allow for the RPC call which lists the macaroon IDs.

We therefore allow up to 60 seconds instead of 5 seconds for that to
happen, to ensure that the kvdb->SQL migration doesn't fail in such
setups.
2026-06-09 18:33:38 +02:00