| 456 | } |
| 457 | |
| 458 | static bool print_extra_fields(const struct tlv_field *fields) |
| 459 | { |
| 460 | bool ok = true; |
| 461 | |
| 462 | for (size_t i = 0; i < tal_count(fields); i++) { |
| 463 | if (fields[i].meta) |
| 464 | continue; |
| 465 | if (fields[i].numtype % 2 == 0) { |
| 466 | printf("UNKNOWN EVEN field %"PRIu64": %s\n", |
| 467 | fields[i].numtype, |
| 468 | tal_hexstr(tmpctx, fields[i].value, fields[i].length)); |
| 469 | ok = false; |
| 470 | } else { |
| 471 | printf("Unknown field %"PRIu64": %s\n", |
| 472 | fields[i].numtype, |
| 473 | tal_hexstr(tmpctx, fields[i].value, fields[i].length)); |
| 474 | } |
| 475 | } |
| 476 | return ok; |
| 477 | } |
| 478 | |
| 479 | static u64 get_offer_type(const char *name) |
| 480 | { |