db: Set the failonion on channel_htlcs if is is not set

This commit is contained in:
Christian Decker
2021-02-14 15:05:24 +01:00
committed by Rusty Russell
parent fbaf8aa6d9
commit 2c1411a70b

View File

@@ -674,6 +674,7 @@ static struct migration dbmigrations[] = {
* it cuts down the time by 80%. */
{SQL("CREATE INDEX forwarded_payments_out_htlc_id"
" ON forwarded_payments (out_htlc_id);"), NULL},
{SQL("UPDATE channel_htlcs SET malformed_onion = 0 WHERE malformed_onion IS NULL"), NULL},
};
/* Leak tracking. */