mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
offers: make it a runtime option.
The fetchinvoice and offers plugins disable themselves if the option isn't enabled (it's enabled by default on EXPERIMENTAL_FEATURES). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: `experimental-offers` enables fetch, payment and creation of (early draft) offers.
This commit is contained in:
committed by
Christian Decker
parent
a4bc3e5673
commit
001b5d6416
@@ -118,6 +118,13 @@ STRUCTEQ_DEF(ripemd160, 0, u);
|
||||
#define IFDEV(dev, nondev) (nondev)
|
||||
#endif
|
||||
|
||||
#if EXPERIMENTAL_FEATURES
|
||||
/* Make sure that nondev is evaluated, and valid, but is a constant */
|
||||
#define IFEXPERIMENTAL(exp, nonexp) (0 ? (nonexp) : (exp))
|
||||
#else
|
||||
#define IFEXPERIMENTAL(exp, nonexp) (nonexp)
|
||||
#endif
|
||||
|
||||
/* Context which all wally allocations use (see common/setup.c) */
|
||||
extern const tal_t *wally_tal_ctx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user