Skip to content

Commit a00ed81

Browse files
committed
lightningd: allow account db version 18.
If you have run recent master, upgrade will fail with: ``` Cannot migrate account database version 18 ``` The final migration is: ``` /* We used to send anchors to the wallet, but set ignored tag. Now we send * them to external. */ {SQL("UPDATE chain_events" " SET account_id = (SELECT id FROM accounts WHERE name = 'external')" " WHERE account_id = (SELECT id FROM accounts WHERE name = 'wallet')" " AND ignored = 1"), NULL}, ``` Which is harmless (we do that upgrade ourselves on migration, but if it's done already that will have no effect). Signed-off-by: Rusty Russell <[email protected]>
1 parent 6f45b47 commit a00ed81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wallet/account_migration.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ void migrate_from_account_db(struct lightningd *ld, struct db *db)
385385
goto out;
386386
}
387387
/* Last migration was 24.08. Migrate there first if this happens. */
388-
if (version != 17)
388+
if (version != 17 && version != 18)
389389
fatal("Cannot migrate account database version %i", version);
390390
chain_events = list_chain_events(tmpctx, account_db);
391391
channel_events = list_channel_events(tmpctx, account_db);

0 commit comments

Comments
 (0)