Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightningd: fix crash when we try to send fail_htlc msg to onchaind. #4122

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lightningd/peer_htlcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static void tell_channeld_htlc_failed(const struct htlc_in *hin,
return;

/* onchaind doesn't care, it can't do anything but wait */
if (channel_on_chain(hin->key.channel))
if (!channel_active(hin->key.channel))
return;

subd_send_msg(hin->key.channel->owner,
Expand Down