From 3e0753b0f5a0d2b2d8ed647439bcb8bb8370629f Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Sun, 16 Feb 2014 18:44:49 +0100 Subject: [PATCH] always show syncnode in getpeerinfo (fixes #2717) --- src/rpcnet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index b764349338..0d7e0fd034 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -140,8 +140,7 @@ Value getpeerinfo(const Array& params, bool fHelp) if (fStateStats) { obj.push_back(Pair("banscore", statestats.nMisbehavior)); } - if (stats.fSyncNode) - obj.push_back(Pair("syncnode", true)); + obj.push_back(Pair("syncnode", stats.fSyncNode)); ret.push_back(obj); }