Browse Source

always show syncnode in getpeerinfo (fixes #2717)

0.10
Philip Kaufmann 11 years ago
parent
commit
3e0753b0f5
  1. 3
      src/rpcnet.cpp

3
src/rpcnet.cpp

@ -140,8 +140,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
if (fStateStats) { if (fStateStats) {
obj.push_back(Pair("banscore", statestats.nMisbehavior)); obj.push_back(Pair("banscore", statestats.nMisbehavior));
} }
if (stats.fSyncNode) obj.push_back(Pair("syncnode", stats.fSyncNode));
obj.push_back(Pair("syncnode", true));
ret.push_back(obj); ret.push_back(obj);
} }

Loading…
Cancel
Save