plugins: don't check for experimental-offers option: it's the default now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-11-18 15:11:15 +10:30
committed by Vincenzo Palazzo
parent e254d91bd2
commit 46b0eb108b
6 changed files with 6 additions and 38 deletions

View File

@@ -840,10 +840,6 @@ struct command_result *json_fetchinvoice(struct command *cmd,
NULL))
return command_param_failed();
if (!offers_enabled)
return command_fail(cmd, LIGHTNINGD,
"experimental-offers not enabled");
sent->wait_timeout = *timeout;
sent->their_paths = sent->offer->offer_paths;
if (sent->their_paths)
@@ -1316,10 +1312,6 @@ struct command_result *json_sendinvoice(struct command *cmd,
NULL))
return command_param_failed();
if (!offers_enabled)
return command_fail(cmd, LIGHTNINGD,
"experimental-offers not enabled");
sent->dev_path_use_scidd = NULL;
sent->dev_reply_path = NULL;
sent->their_paths = sent->invreq->offer_paths;