From c6b5e72e3b8d922190c41a37f533d023cdb1e09e Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 28 Dec 2017 19:24:38 +0100 Subject: [PATCH] Pass bool true instead of "true" to json_add_bool(..., bool value) --- lightningd/peer_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 30929ee4f..515971a4a 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -936,7 +936,7 @@ static void gossipd_getpeers_complete(struct subd *gossip, const u8 *msg, type_to_string(response, struct wireaddr, addrs + i)); json_array_end(response); - json_add_bool(response, "connected", "true"); + json_add_bool(response, "connected", true); json_add_string(response, "owner", gossip->name); json_object_end(response); }