| 220 | } |
| 221 | |
| 222 | struct simple_htlc *fromwire_simple_htlc(const tal_t *ctx, |
| 223 | const u8 **cursor, size_t *max) |
| 224 | { |
| 225 | struct simple_htlc *simple = tal(ctx, struct simple_htlc); |
| 226 | |
| 227 | simple->side = fromwire_side(cursor, max); |
| 228 | simple->amount = fromwire_amount_msat(cursor, max); |
| 229 | fromwire_sha256(cursor, max, &simple->payment_hash); |
| 230 | simple->cltv_expiry = fromwire_u32(cursor, max); |
| 231 | return simple; |
| 232 | } |
| 233 | |
| 234 | void fromwire_fulfilled_htlc(const u8 **cursor, size_t *max, |
| 235 | struct fulfilled_htlc *fulfilled) |
nothing calls this directly
no test coverage detected