diff options
| author | Philip Kaufmann <[email protected]> | 2014-02-16 18:44:49 +0100 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-02-16 18:44:49 +0100 |
| commit | 3e0753b0f5a0d2b2d8ed647439bcb8bb8370629f (patch) | |
| tree | df25aed5ac73dc0f56b584b3ae358f46c641e4cf /src/rpcnet.cpp | |
| parent | Merge pull request #3646 (diff) | |
| download | discoin-3e0753b0f5a0d2b2d8ed647439bcb8bb8370629f.tar.xz discoin-3e0753b0f5a0d2b2d8ed647439bcb8bb8370629f.zip | |
always show syncnode in getpeerinfo (fixes #2717)
Diffstat (limited to 'src/rpcnet.cpp')
| -rw-r--r-- | src/rpcnet.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index b76434933..0d7e0fd03 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); } |