|
@ -2332,10 +2332,16 @@ static void handle_fail(struct peer *peer, const u8 *inmsg) |
|
|
failcode); |
|
|
failcode); |
|
|
} else { |
|
|
} else { |
|
|
u8 *reply; |
|
|
u8 *reply; |
|
|
|
|
|
u8 *failmsg; |
|
|
|
|
|
|
|
|
if (failcode) |
|
|
if (failcode) { |
|
|
errpkt = make_failmsg(inmsg, peer, h, |
|
|
failmsg = make_failmsg(inmsg, peer, h, |
|
|
failcode, &scid); |
|
|
failcode, &scid); |
|
|
|
|
|
errpkt = create_onionreply(inmsg, |
|
|
|
|
|
h->shared_secret, |
|
|
|
|
|
failmsg); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
reply = wrap_onionreply(inmsg, h->shared_secret, |
|
|
reply = wrap_onionreply(inmsg, h->shared_secret, |
|
|
errpkt); |
|
|
errpkt); |
|
|
msg = towire_update_fail_htlc(peer, &peer->channel_id, |
|
|
msg = towire_update_fail_htlc(peer, &peer->channel_id, |
|
|