Skip to content

Commit 77eaa6f

Browse files
committed
Merge pull request #3682
3e0753b always show syncnode in getpeerinfo (fixes #2717) (Philip Kaufmann)
2 parents 410c2fa + 3e0753b commit 77eaa6f

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
@@ -138,8 +138,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
138138
if (fStateStats) {
139139
obj.push_back(Pair("banscore", statestats.nMisbehavior));
140140
}
141-
if (stats.fSyncNode)
142-
obj.push_back(Pair("syncnode", true));
141+
obj.push_back(Pair("syncnode", stats.fSyncNode));
143142

144143
ret.push_back(obj);
145144
}

0 commit comments

Comments
 (0)