| 435 | } |
| 436 | |
| 437 | static struct command_result *param_offer(struct command *cmd, |
| 438 | const char *name, |
| 439 | const char *buffer, |
| 440 | const jsmntok_t *tok, |
| 441 | struct tlv_offer **offer) |
| 442 | { |
| 443 | const char *fail; |
| 444 | |
| 445 | *offer = offer_decode(cmd, buffer + tok->start, tok->end - tok->start, |
| 446 | plugin_feature_set(cmd->plugin), chainparams, |
| 447 | &fail); |
| 448 | if (!*offer) |
| 449 | return command_fail_badparam(cmd, name, buffer, tok, |
| 450 | tal_fmt(cmd, |
| 451 | "Unparsable offer: %s", |
| 452 | fail)); |
| 453 | return NULL; |
| 454 | } |
| 455 | |
| 456 | static struct blinded_path *make_reply_path(const tal_t *ctx, |
| 457 | struct plugin *plugin, |
nothing calls this directly
no test coverage detected