ld: Use the local alias when reporting failures with zeroconf

Ran into this with a zeroconf channel, without confs, that was
disconnected.
This commit is contained in:
Christian Decker 2022-05-31 23:42:23 +02:00
parent 19f8ed3fe1
commit 692a001198
1 changed files with 4 additions and 4 deletions

View File

@ -1056,10 +1056,10 @@ send_payment_core(struct lightningd *ld,
group, channel, &hout);
if (failmsg) {
fail = immediate_routing_failure(cmd, ld,
fromwire_peektype(failmsg),
channel->scid,
&channel->peer->id);
fail = immediate_routing_failure(
cmd, ld, fromwire_peektype(failmsg),
channel_scid_or_local_alias(channel),
&channel->peer->id);
return sendpay_fail(
cmd, old_payment, PAY_TRY_OTHER_ROUTE, NULL, fail,