Skip to content

Commit 3e0753b

Browse files
author
Philip Kaufmann
committed
always show syncnode in getpeerinfo (fixes #2717)
1 parent b8d9058 commit 3e0753b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rpcnet.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
140140
if (fStateStats) {
141141
obj.push_back(Pair("banscore", statestats.nMisbehavior));
142142
}
143-
if (stats.fSyncNode)
144-
obj.push_back(Pair("syncnode", true));
143+
obj.push_back(Pair("syncnode", stats.fSyncNode));
145144

146145
ret.push_back(obj);
147146
}

0 commit comments

Comments
 (0)