Test
This commit is contained in:
@@ -376,15 +376,15 @@ int32_t notarizedtxid_height(char *txidstr,int32_t *kmdnotarized_heightp)
|
||||
if ( (item= jobj(json,(char *)"result")) != 0 )
|
||||
{
|
||||
txid_confirmations = jint(item,(char *)"confirmations");
|
||||
printf("height.%d tconfs.%d\n",height,txid_confirmations);
|
||||
if ( txid_confirmations > 0 && height > txid_confirmations )
|
||||
txid_height = height - txid_confirmations;
|
||||
printf("height.%d tconfs.%d txid_height.%d\n",height,txid_confirmations,txid_height);
|
||||
}
|
||||
free_json(json);
|
||||
}
|
||||
free(jsonstr);
|
||||
}
|
||||
} else printf("no KMDUSERPASS\n");
|
||||
}
|
||||
return(txid_height);
|
||||
}
|
||||
|
||||
|
||||
@@ -1355,7 +1355,7 @@ void komodo_configfile(char *symbol,uint16_t port)
|
||||
komodo_userpass(username,password,fp);
|
||||
sprintf(KMDUSERPASS,"%s:%s",username,password);
|
||||
fclose(fp);
|
||||
printf("KOMODO.(%s) -> userpass.(%s)\n",fname,KMDUSERPASS);
|
||||
//printf("KOMODO.(%s) -> userpass.(%s)\n",fname,KMDUSERPASS);
|
||||
} else printf("couldnt open.(%s)\n",fname);
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ Value getinfo(const Array& params, bool fHelp)
|
||||
txid_height = notarizedtxid_height((char *)notarized_desttxid.ToString().c_str(),&kmdnotarized_height);
|
||||
obj.push_back(Pair("notarizedtxid_height", txid_height));
|
||||
obj.push_back(Pair("kmdnotarized_height", kmdnotarized_height));
|
||||
obj.push_back(Pair("notarized_confirms", kmdnotarized_height));
|
||||
obj.push_back(Pair("notarized_confirms", kmdnotarized_height > txid_height ? (txid_height - txid_height) : 0));
|
||||
}
|
||||
#ifdef ENABLE_WALLET
|
||||
if (pwalletMain) {
|
||||
|
||||
Reference in New Issue
Block a user