| 108 | } |
| 109 | |
| 110 | static struct failed_htlc *mk_failed_htlc(const tal_t *ctx, |
| 111 | const struct htlc_in *hin, |
| 112 | const struct onionreply *failonion) |
| 113 | { |
| 114 | struct failed_htlc *f = tal(ctx, struct failed_htlc); |
| 115 | |
| 116 | f->id = hin->key.id; |
| 117 | f->sha256_of_onion = NULL; |
| 118 | f->badonion = 0; |
| 119 | /* Wrap onion error */ |
| 120 | f->onion = wrap_onionreply(f, hin->shared_secret, failonion); |
| 121 | |
| 122 | return f; |
| 123 | } |
| 124 | |
| 125 | static void tell_channeld_htlc_failed(const struct htlc_in *hin, |
| 126 | const struct failed_htlc *failed_htlc) |
no test coverage detected