aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-03-27 11:20:43 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-27 11:20:49 +0100
commit77eaa6fc45ba7cda90ca7c1ed2374e488a553d2e (patch)
treebaf5500ce6d82bf4e2ca816df8b32f13bd5dd307 /src
parent410c2fa317a54200df7561f90fc8b68f1398ba8b (diff)
parent3e0753b0f5a0d2b2d8ed647439bcb8bb8370629f (diff)
Merge pull request #3682
3e0753b always show syncnode in getpeerinfo (fixes #2717) (Philip Kaufmann)
Diffstat (limited to 'src')
-rw-r--r--src/rpcnet.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp
index efe4f54b0e..3fe328772a 100644
--- a/src/rpcnet.cpp
+++ b/src/rpcnet.cpp
@@ -138,8 +138,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);
}