common/features: don't use internal global.

Turns out that unnecessary: all callers can access the feature_set,
so make it much more like a normal primitive.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-04-02 14:34:47 +10:30
parent 15f54878e4
commit cf43e44378
28 changed files with 253 additions and 233 deletions

View File

@@ -1283,7 +1283,8 @@ static struct command_result *json_pay(struct command *cmd,
NULL))
return command_param_failed();
b11 = bolt11_decode(cmd, b11str, NULL, &fail);
/* FIXME: We need to know our features! */
b11 = bolt11_decode(cmd, b11str, NULL, NULL, &fail);
if (!b11) {
return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
"Invalid bolt11: %s", fail);