Browse Source

Test

etomic
jl777 8 years ago
parent
commit
12b1b22de7
  1. 7
      basilisk/basilisk_MSG.c

7
basilisk/basilisk_MSG.c

@ -402,10 +402,13 @@ cJSON *basilisk_channelget(struct supernet_info *myinfo,bits256 srchash,bits256
jaddbits256(valsobj,"desthash",desthash);
if ( myinfo->IAMNOTARY != 0 )
retstr = basilisk_getmessage(myinfo,0,0,0,desthash,valsobj,0);
else retstr = _dex_getmessage(myinfo,jprint(valsobj,0));
if ( retstr != 0 )
else
{
retstr = _dex_getmessage(myinfo,jprint(valsobj,0));
printf("channel.%u msgid.%u gotmessage.(%d) %s\n",channel,msgid,(int32_t)strlen(retstr),strlen(retstr) < 100 ? retstr : "(too long)");
}
if ( retstr != 0 )
{
if ( (retarray= cJSON_Parse(retstr)) != 0 )
{
if ( is_cJSON_Array(retarray) == 0 )

Loading…
Cancel
Save