Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8aac99604d
  1. 2
      basilisk/basilisk_ping.c
  2. 2
      iguana/iguana_realtime.c
  3. 2
      iguana/iguana_recv.c

2
basilisk/basilisk_ping.c

@ -175,7 +175,7 @@ void basilisk_ping_process(struct supernet_info *myinfo,struct iguana_peer *addr
len += basilisk_ping_processDEX(myinfo,senderipbits,&data[len],datalen-len);
if ( len != datalen )
printf("PING got %d, processed.%d from (%s)\n",datalen,len,ipbuf);
else printf("\n");
//else printf("\n");
//for (i=0; i<datalen; i++)
// printf("%02x",data[i]);
//printf(" <- input ping from.(%s) numrelays.%d numvirts.%d\n",ipbuf,numrelays,numvirts);

2
iguana/iguana_realtime.c

@ -274,7 +274,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info *
if ( bits256_cmp(coin->RThash1,bp->hashes[1]) != 0 )
coin->RThash1 = bp->hashes[1];
bp->lastRT = (uint32_t)time(NULL);
if ( coin->peers != 0 && coin->RTheight <= coin->longestchain-offset && coin->peers->numranked > 0 && time(NULL) > coin->RThdrstime+60 )
if ( coin->peers != 0 && coin->RTheight <= coin->longestchain-offset && coin->peers->numranked > 0 && time(NULL) > coin->RThdrstime+6 )
{
iguana_RThdrs(coin,bp,coin->peers->numranked);
coin->RThdrstime = bp->lastRT;

2
iguana/iguana_recv.c

@ -373,7 +373,7 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i
//iguana_blast(coin,addr);
}
}
copyflag = (coin->enableCACHE != 0) && (strcmp(coin->symbol,"BTC") != 0);
copyflag = 0;//(coin->enableCACHE != 0) && (strcmp(coin->symbol,"BTC") != 0);
bp = 0, bundlei = -2;
bp = iguana_bundlefind(coin,&bp,&bundlei,origtxdata->zblock.RO.hash2);
if ( bp != 0 && bundlei >= 0 && bundlei < bp->n )

Loading…
Cancel
Save