Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f6bd0905d3
  1. 2
      iguana/iguana_bundles.c
  2. 8
      iguana/iguana_recv.c

2
iguana/iguana_bundles.c

@ -516,7 +516,7 @@ int32_t iguana_blocksmissing(struct iguana_info *coin,int32_t *nonzp,uint8_t mis
int32_t iguana_sendhashes(struct iguana_info *coin,struct iguana_peer *addr,int32_t msgtype,bits256 hashes[],int32_t n,int32_t priority)
{
int32_t len; uint8_t *serialized;
if ( netBLOCKS > IGUANA_NUMHELPERS*5000 )
if ( netBLOCKS > IGUANA_NUMHELPERS*1000 )
return(0);
if ( addr->usock >= 0 && addr->dead == 0 && priority > 1 )
{

8
iguana/iguana_recv.c

@ -1379,8 +1379,14 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr)
struct iguana_block *block; struct iguana_blockreq *req=0; char *hashstr=0; bits256 hash2;
int32_t bundlei,priority,i,m,z,pend,limit,height=-1,datalen,flag = 0;
uint32_t now; struct iguana_bundle *bp; struct iguana_peer *ptr;
if ( addr->msgcounts.verack == 0 || netBLOCKS > IGUANA_NUMHELPERS*5000 )
if ( addr->msgcounts.verack == 0 )
return(0);
if ( netBLOCKS > IGUANA_NUMHELPERS*1000 )
{
usleep(netBLOCKS);
if ( netBLOCKS > IGUANA_NUMHELPERS*5000 )
return(0);
}
now = (uint32_t)time(NULL);
if ( iguana_needhdrs(coin) != 0 && addr->pendhdrs < IGUANA_MAXPENDHDRS )
{

Loading…
Cancel
Save