Skip to content

Commit 067a9e4

Browse files
Update wallet/db.c
Co-authored-by: Copilot <[email protected]>
1 parent 57e267d commit 067a9e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wallet/db.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,9 +2044,9 @@ static void migrate_convert_old_channel_keyidx(struct lightningd *ld,
20442044
stmt = db_prepare_v2(db, SQL("UPDATE addresses"
20452045
" SET addrtype = ?"
20462046
" WHERE keyidx IN (SELECT shutdown_keyidx_local FROM channels"
2047-
" WHERE channels.state != ?"
2048-
" AND channels.state != ?)"
2049-
" AND channels.state != ?"));
2047+
" WHERE state != ?"
2048+
" AND state != ?"
2049+
" AND state != ?)"));
20502050
db_bind_int(stmt, wallet_addrtype_in_db(ADDR_ALL));
20512051
/* If we might have already seen onchain funds, we need to rescan */
20522052
db_bind_int(stmt, channel_state_in_db(FUNDING_SPEND_SEEN));

0 commit comments

Comments
 (0)