From ee587af99e8e2c86cf9bfe9ec026ba67596fee25 Mon Sep 17 00:00:00 2001
From: Christian Decker <decker.christian@gmail.com>
Date: Sun, 23 Jun 2019 02:41:19 +0200
Subject: [PATCH] json-rpc: Disable `listtransactions` for the 0.7.1 release

Due to API instability we are disabling the RPC method for this release, but
will re-enable it after the release again.

Signed-off-by: Christian Decker <@cdecker>
---
 CHANGELOG.md       | 1 -
 wallet/walletrpc.c | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index d26b8b0ef..d4c33b1b8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,7 +12,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - JSON API: New command `setchannelfee` sets channel specific routing fees.
 - JSON API: new withdraw methods `txprepare`, `txsend` and `txdiscard`.
 - JSON API: add three new RPC commands: `fundchannel_start`, `fundchannel_complete` and `fundchannel_cancel`. Allows a user to initiate and complete a channel open using funds that are in a external wallet.
-- JSON API: new `listtransactions` command to show wallet history.
 - Plugin: new hooks `db_write` for intercepting database writes, `invoice_payment` for intercepting invoices before they're paid, `openchannel` for intercepting channel opens, and `htlc_accepted` to decide whether to resolve, reject or continue an incoming or forwarded payment..
 - Plugin: new notification `warning` to report any `LOG_UNUSUAL`/`LOG_BROKEN` level event.
 - Plugin: Added a default plugin directory : `lightning_dir/plugins`. Each plugin directory it contains will be added to lightningd on startup.
diff --git a/wallet/walletrpc.c b/wallet/walletrpc.c
index a7a29d293..6fa59bda1 100644
--- a/wallet/walletrpc.c
+++ b/wallet/walletrpc.c
@@ -751,6 +751,7 @@ static const struct json_command dev_rescan_output_command = {
 };
 AUTODATA(json_command, &dev_rescan_output_command);
 
+#if EXPERIMENTAL_FEATURES
 struct {
 	enum wallet_tx_type t;
 	const char *name;
@@ -824,3 +825,4 @@ static const struct json_command listtransactions_command = {
     "it closes the channel and returns funds to the wallet."
 };
 AUTODATA(json_command, &listtransactions_command);
+#endif