This commit is contained in:
jl777
2016-11-19 18:09:04 -03:00
parent 43450135b5
commit e4d89f433c
3 changed files with 4 additions and 2 deletions

View File

@@ -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");

View File

@@ -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);

View File

@@ -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))