test
This commit is contained in:
@@ -598,7 +598,7 @@ void komodo_passport_iteration()
|
||||
{
|
||||
if ( (infoobj= cJSON_Parse(retstr)) != 0 )
|
||||
{
|
||||
if ( (result= jobj(infoobj,"result")) != 0 )
|
||||
if ( (result= jobj(infoobj,(char *)"result")) != 0 )
|
||||
{
|
||||
blocks = juint(infoobj,(char *)"blocks");
|
||||
longest = juint(infoobj,(char *)"longestchain");
|
||||
|
||||
@@ -1361,6 +1361,8 @@ int32_t komodo_userpass(char *userpass,char *symbol)
|
||||
userpass[0] = 0;
|
||||
sprintf(confname,"%s.conf",symbol);
|
||||
komodo_statefname(fname,symbol,confname);
|
||||
if ( strcmp(symbol,"KMD") == 0 )
|
||||
printf("conf.(%s)\n",fname);
|
||||
if ( (fp= fopen(fname,"rb")) != 0 )
|
||||
{
|
||||
komodo_userpass(username,password,fp);
|
||||
|
||||
@@ -535,7 +535,7 @@ CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& loc
|
||||
// Find the first block the caller has in the main chain
|
||||
BOOST_FOREACH(const uint256& hash, locator.vHave) {
|
||||
BlockMap::iterator mi = mapBlockIndex.find(hash);
|
||||
if (mi != 0 && mi != mapBlockIndex.end())
|
||||
if (mi != mapBlockIndex.end())
|
||||
{
|
||||
CBlockIndex* pindex = (*mi).second;
|
||||
if (pindex != 0 && chain.Contains(pindex))
|
||||
|
||||
Reference in New Issue
Block a user