diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index 6a883a07a..70f46731d 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -339,6 +339,7 @@ static void rcvd_htlc_reply(struct subd *subd, const u8 *msg, const int *fds, } if (failure_code) { + hout->failcode = (enum onion_type) failure_code; if (!hout->in) { char *localfail = tal_fmt(msg, "%s: %.*s", onion_type_name(failure_code),