| 286 | } |
| 287 | |
| 288 | static bool find_tlv_num(const struct tlv_payer_proof *pptlv, bigsize_t num) |
| 289 | { |
| 290 | for (size_t i = 0; i < tal_count(pptlv->fields); i++) { |
| 291 | if (pptlv->fields[i].numtype == num) |
| 292 | return true; |
| 293 | } |
| 294 | return false; |
| 295 | } |
| 296 | |
| 297 | const char *check_payer_proof(const tal_t *ctx, |
| 298 | const struct tlv_payer_proof *pptlv) |