lightning-terminal/db
Elle Mouton fb5863e38c
multi: wait for lnd with a configurable timeout during SQL migration
The kvdb-to-SQL data migration polls lnd's ListMacaroonIDs RPC, which
only becomes available once lnd reaches its "RPC active" state. On
nodes with a large channel/graph state, lnd can take well over a
minute to get there after the wallet is unlocked, which exceeded the
previous fixed 60-second (120 x 500ms) poll budget and caused the
migration - and therefore litd startup - to fail permanently,
requiring a manual restart.

Replace the fixed attempt cap with a wait bounded by the new
--lndreadytimeout config option, defaulting to a generous 10 minutes,
while still aborting early if the daemon is shutting down. The wait
happens inside the migration's SQL write transaction, so it is kept
bounded rather than unbounded as a safety backstop.
2026-07-29 15:47:47 -07:00
..
migsets multi: wait for lnd with a configurable timeout during SQL migration 2026-07-29 15:47:47 -07:00
sqlc db/sqlc: add queries for account payments 2026-07-22 14:06:25 -05:00
sqlcmig6 multi: preserve macaroon recipe order in SQL 2026-06-08 17:21:03 +02:00
tombstone db: unify kvdb file existence checks 2026-06-16 20:59:56 +02:00
interfaces.go multi: remove unused db code 2026-05-14 11:37:52 +02:00
log.go multi: update LND and friends 2025-03-26 09:20:52 -05:00
migrations.go build: bump sqldb/v2 to v2.0.0 2026-07-10 19:34:19 -03:00
postgres.go multi: rename MigrationStream names to MigrationSet 2026-05-14 11:39:09 +02:00
postgres_fixture.go db: SQL boilerplate code 2025-01-29 16:37:20 +02:00
schemas.go multi: introduce dev migrations 2026-05-14 11:38:30 +02:00
sqlerrors.go db: SQL boilerplate code 2025-01-29 16:37:20 +02:00
sqlite.go multi: remove unused db code 2026-05-14 11:37:52 +02:00