Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fa4cb49ecd
  1. 2
      iguana/iguana777.c
  2. 14
      iguana/iguana_recv.c

2
iguana/iguana777.c

@ -895,7 +895,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers,
if ( coin->MAXMEM == 0 )
coin->MAXMEM = IGUANA_DEFAULTRAM;
coin->MAXMEM *= (1024L * 1024 * 1024);
coin->enableCACHE = (strcmp("BTCD",coin->symbol) == 0);
coin->enableCACHE = 0;//(strcmp("BTCD",coin->symbol) == 0);
if ( jobj(json,"cache") != 0 )
coin->enableCACHE = juint(json,"cache");
if ( (coin->polltimeout= juint(json,"poll")) <= 0 )

14
iguana/iguana_recv.c

@ -1196,15 +1196,15 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
{
iguana_blockQ("recvhash7",coin,0,-7,blockhashes[1],1);
iguana_blockQ("recvhash7",coin,0,-7,blockhashes[num-1],1);
}
if ( coin->RTheight > 0 )
{
for (i=1; i<num; i++)
if ( 1 && coin->RTheight > 0 )
{
if ( iguana_bundlehash2_check(coin,blockhashes[i]) == 0 )
for (i=1; i<num; i++)
{
iguana_blockQ("recvhashRT",coin,0,-8,blockhashes[i],1);
iguana_sendblockreqPT(coin,0,0,-1,blockhashes[i],0);
//if ( iguana_bundlehash2_check(coin,blockhashes[i]) == 0 )
{
iguana_blockQ("recvhashRT",coin,0,-8,blockhashes[i],1);
iguana_sendblockreqPT(coin,0,0,-1,blockhashes[i],0);
}
}
}
}

Loading…
Cancel
Save