mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 14:44:16 +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:
parent
19f8ed3fe1
commit
692a001198
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user