gossipd: correctly attribute our own channel update to ourselves

This commit is contained in:
Alex Myers 2023-12-07 06:44:04 +10:30 committed by Rusty Russell
parent a8995caa8b
commit 014cc46328

View file

@ -600,7 +600,7 @@ static void apply_update(struct daemon *daemon,
take(update);
}
msg = handle_channel_update(daemon->rstate, update, &chan->nodes[!direction]->id, NULL, true);
msg = handle_channel_update(daemon->rstate, update, &chan->nodes[direction]->id, NULL, true);
if (msg)
status_failed(STATUS_FAIL_INTERNAL_ERROR,
"%s: rejected local channel update %s: %s",