channeld: fix cut & paste bug.

It's failed[i] we're dealing with, not fulfilled[i].

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-01-20 15:42:27 +10:30
parent 9a72016640
commit fe84d69022

View File

@@ -1244,7 +1244,7 @@ bool channel_force_htlcs(struct channel *channel,
if (!htlc_has(htlc, HTLC_REMOVING)) { if (!htlc_has(htlc, HTLC_REMOVING)) {
status_broken("Fail %s HTLC %"PRIu64" state %s", status_broken("Fail %s HTLC %"PRIu64" state %s",
failed_sides[i] == LOCAL ? "out" : "in", failed_sides[i] == LOCAL ? "out" : "in",
fulfilled[i].id, failed[i]->id,
htlc_state_name(htlc->state)); htlc_state_name(htlc->state));
return false; return false;
} }