Browse Source

test

etomic
jl777 8 years ago
parent
commit
f03b054778
  1. 2
      basilisk/basilisk_DEX.c
  2. 4
      iguana/dpow/dpow_network.c

2
basilisk/basilisk_DEX.c

@ -264,7 +264,7 @@ void basilisk_requests_poll(struct supernet_info *myinfo)
//printf("Call incoming\n");
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 ( (outerarray= jarray(&n,retjson,"responses")) != 0 )

4
iguana/dpow/dpow_network.c

@ -70,7 +70,7 @@ int32_t signed_nn_recv(void **freeptrp,void *ctx,uint8_t notaries[64][33],int32_
{
*(void **)packetp = (void **)((uint64_t)sigpacket + sizeof(*sigpacket));
*freeptrp = sigpacket;
printf("got signed packet from notary0\n");
//printf("got signed packet from notary0\n");
return((int32_t)(recvbytes - sizeof(*sigpacket)));
}
for (i=0; i<n && i<64; i++)
@ -78,7 +78,7 @@ int32_t signed_nn_recv(void **freeptrp,void *ctx,uint8_t notaries[64][33],int32_
if ( memcmp(pubkey33,notaries[i],33) == 0 )
{
*(void **)packetp = (void **)((uint64_t)sigpacket + sizeof(*sigpacket));
printf("got signed packet from notary.%d\n",i);
//printf("got signed packet from notary.%d\n",i);
*freeptrp = sigpacket;
return((int32_t)(recvbytes - sizeof(*sigpacket)));
}

Loading…
Cancel
Save