88#include <common/bech32.h>
99#include <common/bolt11.h>
1010#include <common/bolt11_json.h>
11- #if EXPERIMENTAL_FEATURES
1211#include <common/bolt12.h>
1312#include <common/bolt12_merkle.h>
14- #endif
1513#include <common/configdir.h>
1614#include <common/features.h>
1715#include <common/json_command.h>
@@ -133,7 +131,6 @@ static void invoice_secret(const struct preimage *payment_preimage,
133131 memcpy (payment_secret -> data , secret .u .u8 , sizeof (secret .u .u8 ));
134132}
135133
136- #if EXPERIMENTAL_FEATURES
137134/* FIXME: This is a hack. The real secret should be a signature of some
138135 * onion key, using the payer_id */
139136static void invoice_secret_bolt12 (struct lightningd * ld ,
@@ -156,7 +153,6 @@ static void invoice_secret_bolt12(struct lightningd *ld,
156153 BUILD_ASSERT (sizeof (* payment_secret ) == sizeof (merkle ));
157154 memcpy (payment_secret , & merkle , sizeof (merkle ));
158155}
159- #endif /* EXPERIMENTAL_FEATURES */
160156
161157struct invoice_payment_hook_payload {
162158 struct lightningd * ld ;
@@ -371,12 +367,10 @@ invoice_check_payment(const tal_t *ctx,
371367 if (payment_secret ) {
372368 struct secret expected ;
373369
374- #if EXPERIMENTAL_FEATURES
375370 if (details -> invstring && strstarts (details -> invstring , "lni1" ))
376371 invoice_secret_bolt12 (ld , details -> invstring , & expected );
377372 else
378- #endif /* EXPERIMENTAL_FEATURES */
379- invoice_secret (& details -> r , & expected );
373+ invoice_secret (& details -> r , & expected );
380374 if (!secret_eq_consttime (payment_secret , & expected )) {
381375 log_debug (ld -> log , "Attept to pay %s with wrong secret" ,
382376 type_to_string (tmpctx , struct sha256 ,
@@ -460,7 +454,6 @@ static bool hsm_sign_b11(const u5 *u5bytes,
460454 return true;
461455}
462456
463- #if EXPERIMENTAL_FEATURES
464457static void hsm_sign_b12_invoice (struct lightningd * ld ,
465458 struct tlv_invoice * invoice )
466459{
@@ -481,7 +474,6 @@ static void hsm_sign_b12_invoice(struct lightningd *ld,
481474 fatal ("HSM gave bad sign_invoice_reply %s" ,
482475 tal_hex (msg , msg ));
483476}
484- #endif /* EXPERIMENTAL_FEATURES */
485477
486478static struct command_result * parse_fallback (struct command * cmd ,
487479 const char * buffer ,
@@ -1505,7 +1497,6 @@ static struct command_result *json_createinvoice(struct command *cmd,
15051497
15061498 notify_invoice_creation (cmd -> ld , b11 -> msat , * preimage , label );
15071499 } else {
1508- #if EXPERIMENTAL_FEATURES
15091500 struct tlv_invoice * inv ;
15101501 struct sha256 * local_offer_id ;
15111502
@@ -1574,7 +1565,6 @@ static struct command_result *json_createinvoice(struct command *cmd,
15741565 inv -> amount ? & msat : NULL ,
15751566 * preimage , label );
15761567 } else
1577- #endif /* EXPERIMENTAL_FEATURES */
15781568 return command_fail (cmd , JSONRPC2_INVALID_PARAMS ,
15791569 "Unparsable invoice '%s': %s" ,
15801570 invstring , fail );
0 commit comments