This commit is contained in:
jl777
2017-03-26 13:46:07 +03:00
parent 033f496dbe
commit 978ca79512

View File

@@ -358,7 +358,7 @@ int32_t notarizedtxid_height(char *txidstr,int32_t *kmdnotarized_heightp)
//printf("(%s)\n",jsonstr); //printf("(%s)\n",jsonstr);
if ( (json= cJSON_Parse(jsonstr)) != 0 ) if ( (json= cJSON_Parse(jsonstr)) != 0 )
{ {
if ( (item= jobj(json,"result")) != 0 ) if ( (item= jobj(json,(char *)"result")) != 0 )
{ {
*kmdnotarized_heightp = jint(item,(char *)"notarized"); *kmdnotarized_heightp = jint(item,(char *)"notarized");
height = jint(item,(char *)"blocks"); height = jint(item,(char *)"blocks");
@@ -373,7 +373,7 @@ int32_t notarizedtxid_height(char *txidstr,int32_t *kmdnotarized_heightp)
//printf("(%s)\n",jsonstr); //printf("(%s)\n",jsonstr);
if ( (json= cJSON_Parse(jsonstr)) != 0 ) if ( (json= cJSON_Parse(jsonstr)) != 0 )
{ {
if ( (item= jobj(json,"result")) != 0 ) if ( (item= jobj(json,(char *)"result")) != 0 )
{ {
txid_confirmations = jint(item,(char *)"confirmations"); txid_confirmations = jint(item,(char *)"confirmations");
printf("height.%d tconfs.%d\n",height,txid_confirmations); printf("height.%d tconfs.%d\n",height,txid_confirmations);