Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d9c4c42d90
  1. 10
      basilisk/basilisk.c
  2. 4
      gecko/gecko_blocks.c

10
basilisk/basilisk.c

@ -180,9 +180,17 @@ int32_t basilisk_sendcmd(struct supernet_info *myinfo,char *destipaddr,char *typ
addr = &coin->peers->active[i];
if ( addr->usock >= 0 )
{
if ( strcmp(type,"BLK") == 0 )
{
for (s=0; s<myinfo->numrelays; s++)
if ( myinfo->relays[s].ipbits == addr->ipbits )
break;
if ( s == myinfo->numrelays )
continue;
}
for (s=0; s<n; s++)
if ( alreadysent[s] == addr->ipbits )
break;
continue;
//printf("%s s.%d vs n.%d\n",addr->ipaddr,s,n);
if ( s == n && (addr->supernet != 0 || addr->basilisk != 0) && (destipaddr == 0 || strcmp(addr->ipaddr,destipaddr) == 0) )
{

4
gecko/gecko_blocks.c

@ -307,9 +307,9 @@ int32_t basilisk_blocksubmit(struct supernet_info *myinfo,struct iguana_info *bt
jaddnum(valsobj,"fanout",-1);
jaddnum(valsobj,"height",height);
jaddstr(valsobj,"symbol",virt->symbol);
if ( 0 && (str2= basilisk_standardservice("BLK",myinfo,hash2,valsobj,blockstr,0)) != 0 )
if ( (str2= basilisk_standardservice("BLK",myinfo,hash2,valsobj,blockstr,0)) != 0 )
{
if ( (retarray= cJSON_Parse(str2)) != 0 )
if ( 0 && (retarray= cJSON_Parse(str2)) != 0 )
{
numerrs = numresults = 0;
if ( (num= cJSON_GetArraySize(retarray)) > 0 )

Loading…
Cancel
Save