| 173 | } |
| 174 | |
| 175 | void fromwire_added_htlc(const u8 **cursor, size_t *max, |
| 176 | struct added_htlc *added) |
| 177 | { |
| 178 | added->id = fromwire_u64(cursor, max); |
| 179 | added->amount = fromwire_amount_msat(cursor, max); |
| 180 | fromwire_sha256(cursor, max, &added->payment_hash); |
| 181 | added->cltv_expiry = fromwire_u32(cursor, max); |
| 182 | fromwire(cursor, max, added->onion_routing_packet, |
| 183 | sizeof(added->onion_routing_packet)); |
| 184 | if (fromwire_bool(cursor, max)) { |
| 185 | added->blinding = tal(added, struct pubkey); |
| 186 | fromwire_pubkey(cursor, max, added->blinding); |
| 187 | fromwire_secret(cursor, max, &added->blinding_ss); |
| 188 | } else |
| 189 | added->blinding = NULL; |
| 190 | added->fail_immediate = fromwire_bool(cursor, max); |
| 191 | } |
| 192 | |
| 193 | struct existing_htlc *fromwire_existing_htlc(const tal_t *ctx, |
| 194 | const u8 **cursor, size_t *max) |
nothing calls this directly
no test coverage detected