Skip to content

Commit a760a38

Browse files
Philip Kaufmannrecursive-rat4
authored andcommitted
always show syncnode in getpeerinfo (fixes #2717)
Conflicts: src/rpcnet.cpp
1 parent 7217c7f commit a760a38

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/rpcnet.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
9393
obj.push_back(Pair("inbound", stats.fInbound));
9494
obj.push_back(Pair("startingheight", stats.nStartingHeight));
9595
obj.push_back(Pair("banscore", stats.nMisbehavior));
96-
if (stats.fSyncNode)
97-
obj.push_back(Pair("syncnode", true));
96+
obj.push_back(Pair("syncnode", stats.fSyncNode));
9897

9998
ret.push_back(obj);
10099
}

0 commit comments

Comments
 (0)