Browse Source

Test

etomic
jl777 8 years ago
parent
commit
c5426295f0
  1. 2
      basilisk/basilisk_MSG.c
  2. 2
      basilisk/basilisk_swap.c

2
basilisk/basilisk_MSG.c

@ -98,7 +98,7 @@ char *basilisk_iterate_MSG(struct supernet_info *myinfo,uint32_t channel,uint32_
// char str[65],str2[65]; printf("MSGiterate (%s) -> (%s)\n",bits256_str(str,srchash),bits256_str(str2,desthash));
array = cJSON_CreateArray();
portable_mutex_lock(&myinfo->messagemutex);
//printf("iterate_MSG allflag.%d width.%d channel.%d msgid.%d src.%llx -> %llx\n",allflag,origwidth,channel,msgid,(long long)srchash.txid,(long long)desthash.txid);
printf("iterate_MSG width.%d channel.%d msgid.%d src.%llx -> %llx\n",origwidth,channel,msgid,(long long)srchash.txid,(long long)desthash.txid);
for (i=0; i<width; i++)
{
keylen = basilisk_messagekey(key,channel,msgid,srchash,desthash);

2
basilisk/basilisk_swap.c

@ -889,7 +889,7 @@ int32_t basilisk_swapget(struct supernet_info *myinfo,struct basilisk_swap *swap
jaddnum(valsobj,"msgid",msgbits);
jaddbits256(valsobj,"srchash",swap->I.otherhash);
jaddbits256(valsobj,"desthash",swap->I.myhash);
jaddnum(valsobj,"width",0);
jaddnum(valsobj,"width",30);
if ( (retstr= _dex_getmessage(myinfo,jprint(valsobj,1))) != 0 )
{
if ( (array= cJSON_Parse(retstr)) != 0 )

Loading…
Cancel
Save