Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
50c09e14d1
  1. 2
      iguana/iguana_recv.c

2
iguana/iguana_recv.c

@ -67,6 +67,8 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr,
// if ( (rand() % 10 ) != 0 ) // if ( (rand() % 10 ) != 0 )
return(0); return(0);
} }
if ( addr->usock < 0 )
return(0);
checkbp = 0, j = -2; checkbp = 0, j = -2;
if ( (checkbp= iguana_bundlefind(coin,&checkbp,&j,hash2)) != 0 && j >= 0 && j < checkbp->n ) if ( (checkbp= iguana_bundlefind(coin,&checkbp,&j,hash2)) != 0 && j >= 0 && j < checkbp->n )
{ {

Loading…
Cancel
Save