Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
af859ef2d1
  1. 1
      iguana/SuperNET.c
  2. 2
      iguana/SuperNET_category.c
  3. 2
      iguana/SuperNET_hexmsg.c

1
iguana/SuperNET.c

@ -416,6 +416,7 @@ char *SuperNET_hexconv(char *hexmsg)
if ( (retstr= calloc(1,n*2+1)) != 0 ) if ( (retstr= calloc(1,n*2+1)) != 0 )
init_hexbytes_noT(retstr,bits,n); init_hexbytes_noT(retstr,bits,n);
else retstr = hexmsg; else retstr = hexmsg;
free_json(json);
} //else printf("SuperNET_hexconv cant parse.(%s)\n",hexmsg); } //else printf("SuperNET_hexconv cant parse.(%s)\n",hexmsg);
free(bits); free(bits);
} }

2
iguana/SuperNET_category.c

@ -93,7 +93,7 @@ void category_posthexmsg(struct supernet_info *myinfo,bits256 categoryhash,bits2
m->t = now, m->len = len; m->t = now, m->len = len;
decode_hex(m->msg,m->len,hexmsg); decode_hex(m->msg,m->len,hexmsg);
queue_enqueue("categoryQ",Q,&m->DL,0); queue_enqueue("categoryQ",Q,&m->DL,0);
char str[65]; printf("POST HEXMSG.(%s) -> %s.%llx\n",hexmsg,bits256_str(str,categoryhash),(long long)subhash.txid); //char str[65]; printf("POST HEXMSG.(%s) -> %s.%llx\n",hexmsg,bits256_str(str,categoryhash),(long long)subhash.txid);
return; return;
} }
char str[65]; printf("no subscription for category.(%s) %llx\n",bits256_str(str,categoryhash),(long long)subhash.txid); char str[65]; printf("no subscription for category.(%s) %llx\n",bits256_str(str,categoryhash),(long long)subhash.txid);

2
iguana/SuperNET_hexmsg.c

@ -70,5 +70,5 @@ void SuperNET_hexmsgadd(struct supernet_info *myinfo,bits256 categoryhash,bits25
strcat(str,str2); strcat(str,str2);
} }
category_posthexmsg(myinfo,categoryhash,subhash,hexmsg,now); category_posthexmsg(myinfo,categoryhash,subhash,hexmsg,now);
printf("HEXMSG.(%s).%llx -> %s\n",hexmsg,(long long)subhash.txid,str); //printf("HEXMSG.(%s).%llx -> %s\n",hexmsg,(long long)subhash.txid,str);
} }

Loading…
Cancel
Save