common: remove json_tok.

Make local copies for tests, and fundchannel plugin (which just passes
params through).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-07-04 10:56:36 +09:30
committed by neil saitug
parent a9b992ff4a
commit f12f0d6929
4 changed files with 17 additions and 19 deletions

View File

@@ -28,6 +28,15 @@ fundchannel_get_result(struct command *cmd,
const jsmntok_t *result,
void *nothing UNUSED);
/* Generally a bad idea, but makes sense here. */
static struct command_result *param_tok(struct command *cmd, const char *name,
const char *buffer, const jsmntok_t * tok,
const jsmntok_t **out)
{
*out = tok;
return NULL;
}
/* Thin wrapper aroud multifundchannel. */
static struct command_result *
json_fundchannel(struct command *cmd,