jl777 8 years ago
parent
commit
10c5836148
  1. 2
      basilisk/basilisk.c
  2. 2
      basilisk/basilisk_MSG.c

2
basilisk/basilisk.c

@ -844,7 +844,7 @@ void basilisk_requests_poll(struct supernet_info *myinfo)
//printf("Call incoming\n"); //printf("Call incoming\n");
if ( (retstr= InstantDEX_incoming(myinfo,0,0,0,0)) != 0 ) if ( (retstr= InstantDEX_incoming(myinfo,0,0,0,0)) != 0 )
{ {
printf("poll.(%s)\n",retstr); //printf("poll.(%s)\n",retstr);
if ( (retjson= cJSON_Parse(retstr)) != 0 ) if ( (retjson= cJSON_Parse(retstr)) != 0 )
{ {
if ( (outerarray= jarray(&n,retjson,"responses")) != 0 ) if ( (outerarray= jarray(&n,retjson,"responses")) != 0 )

2
basilisk/basilisk_MSG.c

@ -250,7 +250,7 @@ HASH_ARRAY_STRING(basilisk,getmessage,hash,vals,hexstr)
jaddbits256(vals,"srchash",hash); jaddbits256(vals,"srchash",hash);
if ( bits256_cmp(GENESIS_PUBKEY,jbits256(vals,"desthash")) == 0 ) if ( bits256_cmp(GENESIS_PUBKEY,jbits256(vals,"desthash")) == 0 )
jaddbits256(vals,"desthash",myinfo->myaddr.persistent); jaddbits256(vals,"desthash",myinfo->myaddr.persistent);
char str[65]; printf("getmessage for (%s)\n",bits256_str(str,jbits256(vals,"desthash"))); //char str[65]; printf("getmessage for (%s)\n",bits256_str(str,jbits256(vals,"desthash")));
if ( (msgid= juint(vals,"msgid")) == 0 ) if ( (msgid= juint(vals,"msgid")) == 0 )
{ {
msgid = (uint32_t)time(NULL); msgid = (uint32_t)time(NULL);

Loading…
Cancel
Save