Skip to content

Commit 3f35f83

Browse files
committed
subd: Do not send feerate updates to non-channeld subds
Turns out we were sending feerate updates to daemons that do not understand it. Don't do that! Closes #6932 Changelog-Fixed: channeld: We could crash `closingd` by sending it a `channeld` message
1 parent b1bf1e9 commit 3f35f83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightningd/channel_control.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ static void try_update_feerates(struct lightningd *ld, struct channel *channel)
9393
if (!channel->owner)
9494
return;
9595

96+
/* The feerate message is only understood by `channeld` so
97+
* don't attempt to send it to other subds*/
98+
if (!streq(channel->owner->name, "channeld"))
99+
return;
100+
96101
channel_update_feerates(ld, channel);
97102
}
98103

0 commit comments

Comments
 (0)