mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user