-
Notifications
You must be signed in to change notification settings - Fork 954
Open
Labels
BoltzPriority::HighShould be addressed as soon as possible due to significant impact, but not an emergency.Should be addressed as soon as possible due to significant impact, but not an emergency.
Milestone
Description
When closed channels with lots of updates are being forgotten, the CLN RPC freezes until the deletion is done.
From @rustyrussell:
I strongly suspect it's this:
stmt = db_prepare_v2(w->db, SQL("DELETE FROM channel_htlcs "
"WHERE channel_id=?"));
This is because there's no index for that exact thing, so this causes a sweep of the entire table. Fix is obvious: add another index...
Metadata
Metadata
Assignees
Labels
BoltzPriority::HighShould be addressed as soon as possible due to significant impact, but not an emergency.Should be addressed as soon as possible due to significant impact, but not an emergency.