Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d0bb648747
  1. 1
      iguana/iguana_msg.c
  2. 2
      iguana/iguana_rpc.c

1
iguana/iguana_msg.c

@ -435,6 +435,7 @@ int32_t iguana_parser(struct iguana_info *coin,struct iguana_peer *addr,struct O
len = recvlen; len = recvlen;
if ( (retstr= SuperNET_p2p(coin,addr->ipaddr,data,recvlen)) != 0 ) if ( (retstr= SuperNET_p2p(coin,addr->ipaddr,data,recvlen)) != 0 )
{ {
iguana_send_supernet(coin,addr,retstr);
free(retstr); // dont respond immediate due to privacy free(retstr); // dont respond immediate due to privacy
} }
} }

2
iguana/iguana_rpc.c

@ -504,7 +504,7 @@ char *SuperNET_p2p(struct iguana_info *coin,char *ipaddr,uint8_t *data,int32_t d
cJSON *json; char *retstr = 0; cJSON *json; char *retstr = 0;
if ( (json= cJSON_Parse((char *)data)) != 0 ) if ( (json= cJSON_Parse((char *)data)) != 0 )
{ {
printf("SUPERNET P2P.(%s)\n",(char *)data); printf("GOT >>>>>>>> SUPERNET P2P.(%s)\n",(char *)data);
retstr = iguana_JSON(coin,(char *)data,ipaddr); retstr = iguana_JSON(coin,(char *)data,ipaddr);
free_json(json); free_json(json);
} }

Loading…
Cancel
Save