We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e267d commit 067a9e4Copy full SHA for 067a9e4
wallet/db.c
@@ -2044,9 +2044,9 @@ static void migrate_convert_old_channel_keyidx(struct lightningd *ld,
2044
stmt = db_prepare_v2(db, SQL("UPDATE addresses"
2045
" SET addrtype = ?"
2046
" WHERE keyidx IN (SELECT shutdown_keyidx_local FROM channels"
2047
- " WHERE channels.state != ?"
2048
- " AND channels.state != ?)"
2049
- " AND channels.state != ?"));
+ " WHERE state != ?"
+ " AND state != ?"
+ " AND state != ?)"));
2050
db_bind_int(stmt, wallet_addrtype_in_db(ADDR_ALL));
2051
/* If we might have already seen onchain funds, we need to rescan */
2052
db_bind_int(stmt, channel_state_in_db(FUNDING_SPEND_SEEN));
0 commit comments