lightning-downgrade: prepare for downgrading to v26.04.
What changed, and why it matters
This commit is routine release bookkeeping. It adds a new version marker (v26.04) to the downgrade tool and a comment in the database migration list so that users who later downgrade from v26.04 to an earlier release have the correct metadata. There is no bug fix, behavior change, or security-sensitive code change.
No security action needed. Treat as normal release maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch updates tools/lightning-downgrade.c to register database version 282 as ‘v26.04’ with no downgrade function (NULL), and adds a / ^v26.04 / marker comment in wallet/migrations.c after the last migration. These are purely metadata/comment changes for release tracking and downgrade support.
Changed components
tools/lightning-downgrade.cwallet/migrations.cInspect captured patch +2 / −0
diff --git a/tools/lightning-downgrade.c b/tools/lightning-downgrade.c
index 25a118d..70a8f22 100644
--- a/tools/lightning-downgrade.c
+++ b/tools/lightning-downgrade.c
@@ -169,6 +169,7 @@ static const char *downgrade_askrene_layers(const tal_t *ctx, struct db *db)
static const struct db_version db_versions[] = {
{ "v25.09", 276, downgrade_askrene_layers, false },
{ "v25.12", 280, NULL, false },
+ { "v26.04", 282, NULL, false },
};
static const struct db_version *version_db(const char *version)
diff --git a/wallet/migrations.c b/wallet/migrations.c
index 83c61c0..1f5d3b5 100644
--- a/wallet/migrations.c
+++ b/wallet/migrations.c
@@ -1084,6 +1084,7 @@ static const struct db_migration dbmigrations[] = {
NULL, NULL},
{SQL("ALTER TABLE offers ADD COLUMN force_paths INTEGER DEFAULT 0;"), NULL,
SQL("ALTER TABLE offers DROP COLUMN force_paths"), NULL},
+ /* ^v26.04 */
};
const struct db_migration *get_db_migrations(size_t *num)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.