mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
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:
committed by
neil saitug
parent
a9b992ff4a
commit
f12f0d6929
@@ -220,6 +220,14 @@ static void sanity(void)
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
* Make sure toks are passed through correctly, and also make sure
|
||||
* optional missing toks are set to NULL.
|
||||
|
||||
Reference in New Issue
Block a user