|
|
@ -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 ) |
|
|
|