* These handle specific fields in the payment request; returning the problem * if any, or NULL. */
| 126 | * if any, or NULL. |
| 127 | */ |
| 128 | static char *unknown_field(struct bolt11 *b11, |
| 129 | struct hash_u5 *hu5, |
| 130 | u5 **data, size_t *data_len, |
| 131 | u5 type, size_t length) |
| 132 | { |
| 133 | struct bolt11_field *extra = tal(b11, struct bolt11_field); |
| 134 | u8 u8data[num_u8(length)]; |
| 135 | |
| 136 | extra->tag = type; |
| 137 | extra->data = tal_dup_arr(extra, u5, *data, length, 0); |
| 138 | list_add_tail(&b11->extra_fields, &extra->list); |
| 139 | |
| 140 | pull_bits_certain(hu5, data, data_len, u8data, length * 5, true); |
| 141 | return NULL; |
| 142 | } |
| 143 | |
| 144 | /* BOLT #11: |
| 145 | * |
no test coverage detected