This commit is contained in:
jl777
2018-04-15 18:10:28 +03:00
parent d085cf67ab
commit 78c23c84c7

View File

@@ -168,11 +168,13 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp)
int32_t komodo_longestchain() int32_t komodo_longestchain()
{ {
int32_t ht,n=0,num=0,maxheight=0,height = 0; int32_t ht,n=0,num=0,maxheight=0,height = 0;
LOCK(cs_main); //LOCK(cs_main);
fprintf(stderr,"komodo_longestchain\n");
vector<CNodeStats> vstats; vector<CNodeStats> vstats;
CopyNodeStats(vstats); CopyNodeStats(vstats);
BOOST_FOREACH(const CNodeStats& stats, vstats) BOOST_FOREACH(const CNodeStats& stats, vstats)
{ {
fprintf(stderr,"komodo_longestchain iter.%d\n",n);
CNodeStateStats statestats; CNodeStateStats statestats;
bool fStateStats = GetNodeStateStats(stats.nodeid,statestats); bool fStateStats = GetNodeStateStats(stats.nodeid,statestats);
ht = 0; ht = 0;