mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-05 22:24:25 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user