Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ec762c4440
  1. 2
      iguana/iguana777.h
  2. 2
      iguana/iguana_bundles.c
  3. 2
      iguana/iguana_recv.c

2
iguana/iguana777.h

@ -26,7 +26,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_SERIALIZE_SPENDVECTORGEN
//#define IGUANA_SERIALIZE_BALANCEGEN
//#define IGUANA_DISABLEPEERS
#define _IGUANA_MAXSTUCKTIME 77
#define _IGUANA_MAXSTUCKTIME 777
#define IGUANA_MAXITERATIONS 10000
#define IGUANA_DEFAULTLAG 60

2
iguana/iguana_bundles.c

@ -779,7 +779,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru
if ( ((lag/coin->MAXSTUCKTIME)>>1) > coin->stuckiters )
{
coin->stuckiters = (int32_t)lag/60;
if ( lag > coin->MAXSTUCKTIME )
if ( 0 && lag > coin->MAXSTUCKTIME )
{
while ( (breq= queue_dequeue(&coin->blocksQ,0)) != 0 )
myfree(breq,sizeof(*breq));

2
iguana/iguana_recv.c

@ -826,7 +826,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
{
bp->speculative[i] = blockhashes[i];
//printf("speculate new issue [%d:%d]\n",bp->hdrsi,i);
iguana_blockQ("speculate",coin,bp,-i,blockhashes[i],0);
//iguana_blockQ("speculate",coin,bp,-i,blockhashes[i],0);
}
bp->speculative[0] = bp->hashes[0];
bp->numspec = num <= bp->n+1 ? num : bp->n+1;

Loading…
Cancel
Save