Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
792fa85e1c
  1. 4
      iguana/iguana_bundles.c

4
iguana/iguana_bundles.c

@ -479,7 +479,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 len; uint8_t *serialized;
if ( (rand() % 100) == 0 || strcmp("BTC",coin->symbol) != 0 )
if ( (rand() % 10) == 0 || strcmp("BTC",coin->symbol) != 0 )
{
serialized = malloc((sizeof(int32_t) + sizeof(*hashes))*n + 1024);
if ( (len= iguana_getdata(coin,serialized,MSG_BLOCK,hashes,n)) > 0 )
@ -503,7 +503,7 @@ int32_t iguana_sendhashes(struct iguana_info *coin,struct iguana_peer *addr,int3
for (i=0; i<n; i++)
{
//iguana_sendblockreqPT(coin,addr,0,-1,hashes[i],0);
iguana_blockQ("test",coin,0,-1,hashes[i],0);
iguana_blockQ("test",coin,0,-1,hashes[i],(rand() % 10) == 0);
}
}
return(n);

Loading…
Cancel
Save