From 4f1dc91ba5e9a42b674d2fb3d04bf8d0b986b693 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 19 Jan 2018 09:43:47 +1030 Subject: [PATCH] lightningd: rename --deprecated-apis to --allow-deprecated-apis. Suggested-byL practicalswift Signed-off-by: Rusty Russell --- lightningd/options.c | 3 ++- tests/utils.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lightningd/options.c b/lightningd/options.c index 5138943fd..2a9e91e8f 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -271,7 +271,8 @@ static void config_register_opts(struct lightningd *ld) ld, "Select the network parameters (bitcoin, testnet," " regtest, or litecoin)"); - opt_register_arg("--deprecated-apis", opt_set_bool_arg, opt_show_bool, + opt_register_arg("--allow-deprecated-apis", + opt_set_bool_arg, opt_show_bool, &deprecated_apis, "Enable deprecated options, JSONRPC commands, fields, etc."); } diff --git a/tests/utils.py b/tests/utils.py index 8604c50b3..5387fcbe0 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -249,7 +249,7 @@ class LightningD(TailableProc): '--bitcoin-datadir={}'.format(bitcoin_dir), '--lightning-dir={}'.format(lightning_dir), '--port={}'.format(port), - '--deprecated-apis=false', + '--allow-deprecated-apis=false', '--override-fee-rates=15000/7500/1000', '--network=regtest', '--ignore-fee-limits=false'