Browse Source

Test

etomic
jl777 8 years ago
parent
commit
0fc2622ce6
  1. 12
      basilisk/jumblr.c

12
basilisk/jumblr.c

@ -217,17 +217,22 @@ int32_t jumblr_itemset(struct jumblr_item *ptr,cJSON *item,char *status)
void jumblr_opidupdate(struct supernet_info *myinfo,struct iguana_info *coin,struct jumblr_item *ptr)
{
char *retstr,*status; cJSON *retjson;
char *retstr,*status; cJSON *retjson,*item;
if ( ptr->status == 0 )
{
if ( (retstr= jumblr_zgetoperationstatus(myinfo,coin,ptr->opid)) != 0 )
{
if ( (retjson= cJSON_Parse(retstr)) != 0 )
{
if ( (status= jstr(retjson,"status")) != 0 )
if ( cJSON_GetArraySize(retjson) == 1 )
{
item = jitem(retjson,0);
if ( (status= jstr(item,"status")) != 0 )
{
if ( strcmp(status,"success") == 0 )
ptr->status = jumblr_itemset(ptr,retjson,status);
{
ptr->status = jumblr_itemset(ptr,item,status);
}
else if ( strcmp(status,"failure") == 0 )
{
printf("%s failed\n",ptr->opid);
@ -235,6 +240,7 @@ void jumblr_opidupdate(struct supernet_info *myinfo,struct iguana_info *coin,str
ptr->status = -1;
}
}
}
free_json(retjson);
}
free(retstr);

Loading…
Cancel
Save