mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
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
This commit is contained in:
parent
b0377d2323
commit
a9aa93d822
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ static void try_update_feerates(struct lightningd *ld, struct channel *channel)
|
|||
if (!channel->owner)
|
||||
return;
|
||||
|
||||
/* The feerate message is only understood by `channeld` so
|
||||
* don't attempt to send it to other subds*/
|
||||
if (!streq(channel->owner->name, "channeld"))
|
||||
return;
|
||||
|
||||
channel_update_feerates(ld, channel);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue