aboutsummaryrefslogtreecommitdiff
path: root/src/rpcnet.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-06-23 00:00:26 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-06-29 21:50:55 +0200
commitaa815647005bc8467f467c35a9e617794446cd64 (patch)
tree9b97cad3ab2f673aadda08802d7aa74edc483552 /src/rpcnet.cpp
parenta11f648585ce29ae0be1a572ccbd7611f3dd2b1d (diff)
Track peers' available blocks
Diffstat (limited to 'src/rpcnet.cpp')
-rw-r--r--src/rpcnet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp
index a54872ccc4..2d7abb2d58 100644
--- a/src/rpcnet.cpp
+++ b/src/rpcnet.cpp
@@ -134,6 +134,7 @@ Value getpeerinfo(const Array& params, bool fHelp)
obj.push_back(Pair("startingheight", stats.nStartingHeight));
if (fStateStats) {
obj.push_back(Pair("banscore", statestats.nMisbehavior));
+ obj.push_back(Pair("syncheight", statestats.nSyncHeight));
}
obj.push_back(Pair("syncnode", stats.fSyncNode));