Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
2a514228dc
  1. 6
      iguana/SuperNET.c

6
iguana/SuperNET.c

@ -461,11 +461,11 @@ char *SuperNET_p2p(struct iguana_info *coin,struct iguana_peer *addr,int32_t *de
checkc = SuperNET_checkc(myinfo,senderpub,j64bits(json,"tag"));
if ( checkc == othercheckc )
{
if ( addr->validpub++ > 1 )
if ( addr->validpub++ > 3 )
addr->sharedseed = SuperNET_sharedseed(myinfo,senderpub);
} else addr->validpub = 0;
} else addr->validpub = 0, memset(addr->sharedseed.bytes,0,sizeof(addr->sharedseed));
printf("validpub.%d: %x vs %x shared.%llx\n",addr->validpub,checkc,othercheckc,(long long)addr->sharedseed.txid);
}
} else addr->validpub = 0, memset(addr->sharedseed.bytes,0,sizeof(addr->sharedseed));
maxdelay = juint(json,"maxdelay");
printf("GOT >>>>>>>> SUPERNET P2P.(%s) from.%s\n",jprint(json,0),coin->symbol);
if ( (myipaddr= jstr(json,"yourip")) != 0 )

Loading…
Cancel
Save