From 4bb82378c01eb791c0b4992685c049f04eb17df1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 28 Mar 2016 20:37:14 -0300 Subject: [PATCH] test --- iguana/iguana777.h | 2 +- iguana/iguana_recv.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/iguana/iguana777.h b/iguana/iguana777.h index aac6091e7..2ffc64533 100755 --- a/iguana/iguana777.h +++ b/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 300 +#define _IGUANA_MAXSTUCKTIME 77 #define IGUANA_MAXITERATIONS 10000 #define IGUANA_MAXCOINS 64 diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 2398f34a6..1987fdfb0 100755 --- a/iguana/iguana_recv.c +++ b/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 } 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); } @@ -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 ) { - 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); addr->pendhdrs++; flag++;