KOMODO_LONGESTCHAIN = height;
This commit is contained in:
@@ -165,6 +165,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t KOMODO_LONGESTCHAIN;
|
||||||
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;
|
||||||
@@ -191,8 +192,12 @@ int32_t komodo_longestchain()
|
|||||||
height = ht;
|
height = ht;
|
||||||
}
|
}
|
||||||
if ( num > (n >> 1) )
|
if ( num > (n >> 1) )
|
||||||
|
{
|
||||||
|
KOMODO_LONGESTCHAIN = height;
|
||||||
return(height);
|
return(height);
|
||||||
else return(0);
|
}
|
||||||
|
KOMODO_LONGESTCHAIN = 0;
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
UniValue addnode(const UniValue& params, bool fHelp)
|
UniValue addnode(const UniValue& params, bool fHelp)
|
||||||
|
|||||||
Reference in New Issue
Block a user