streamline

This commit is contained in:
jl777
2018-04-25 15:04:16 +03:00
parent cdf589a2fd
commit 265660f7cb
3 changed files with 12 additions and 10 deletions

View File

@@ -169,9 +169,11 @@ int32_t KOMODO_LONGESTCHAIN;
int32_t komodo_longestchain()
{
int32_t ht,n=0,num=0,maxheight=0,height = 0;
LOCK(cs_main);
vector<CNodeStats> vstats;
CopyNodeStats(vstats);
{
LOCK(cs_main);
vector<CNodeStats> vstats;
CopyNodeStats(vstats);
}
BOOST_FOREACH(const CNodeStats& stats, vstats)
{
//fprintf(stderr,"komodo_longestchain iter.%d\n",n);