Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4bb82378c0
  1. 2
      iguana/iguana777.h
  2. 6
      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_SPENDVECTORGEN
//#define IGUANA_SERIALIZE_BALANCEGEN //#define IGUANA_SERIALIZE_BALANCEGEN
//#define IGUANA_DISABLEPEERS //#define IGUANA_DISABLEPEERS
#define _IGUANA_MAXSTUCKTIME 300 #define _IGUANA_MAXSTUCKTIME 77
#define IGUANA_MAXITERATIONS 10000 #define IGUANA_MAXITERATIONS 10000
#define IGUANA_MAXCOINS 64 #define IGUANA_MAXCOINS 64

6
iguana/iguana_recv.c

@ -813,8 +813,10 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
iguana_blockQ("recvhash6",coin,0,-6,blockhashes[1],0); // should be RT block iguana_blockQ("recvhash6",coin,0,-6,blockhashes[1],0); // should be RT block
} }
block->newtx = 1; block->newtx = 1;
iguana_blockQ("recvhash6",coin,0,-7,blockhashes[1],0); // should be RT block iguana_blockQ("RTblock",coin,0,-7,blockhashes[1],0); // should be RT block
} }
if ( coin->enableCACHE != 0 && num >= coin->chain->bundlesize )
iguana_blockQ("recvhash7",coin,0,-7,blockhashes[coin->chain->bundlesize],0);
return(req); return(req);
} }
@ -1356,7 +1358,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr)
} }
if ( bp == 0 || bp->speculative == 0 || bp == coin->current ) if ( bp == 0 || bp->speculative == 0 || bp == coin->current )
{ {
printf("%s request HDR.(%s) numhashes.%d\n",addr!=0?addr->ipaddr:"local",hashstr,bp!=0?bp->numhashes:0); //printf("%s request HDR.(%s) numhashes.%d\n",addr!=0?addr->ipaddr:"local",hashstr,bp!=0?bp->numhashes:0);
iguana_send(coin,addr,serialized,datalen); iguana_send(coin,addr,serialized,datalen);
addr->pendhdrs++; addr->pendhdrs++;
flag++; flag++;

Loading…
Cancel
Save