| 48 | } |
| 49 | |
| 50 | static struct command_result *param_b12_offer(struct command *cmd, |
| 51 | const char *name, |
| 52 | const char *buffer, |
| 53 | const jsmntok_t *tok, |
| 54 | struct tlv_offer **offer) |
| 55 | { |
| 56 | const char *fail; |
| 57 | *offer = offer_decode(cmd, buffer + tok->start, |
| 58 | tok->end - tok->start, |
| 59 | cmd->ld->our_features, chainparams, &fail); |
| 60 | if (!*offer) |
| 61 | return command_fail_badparam(cmd, name, buffer, tok, fail); |
| 62 | return NULL; |
| 63 | } |
| 64 | |
| 65 | static void hsm_sign_b12(struct lightningd *ld, |
| 66 | const char *messagename, |
nothing calls this directly
no test coverage detected