From 68ce0386e5d8a24aec8074d68d1cadfec28b25ce Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 16 Sep 2016 17:44:07 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index b1d19bb2f..0b60eb7fe 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1022,7 +1022,7 @@ uint32_t iguana_allhashcmp(struct supernet_info *myinfo,struct iguana_info *coin //n = 0; //if ( bp->hdrsi < coin->MAXBUNDLES || (coin->current != 0 && coin->lastpending != 0 && bp->hdrsi >= coin->current->hdrsi && bp->hdrsi <= coin->lastpending->hdrsi) ) // n = iguana_bundleissuemissing(myinfo,coin,bp,1,3.); - //if ( 1 && n > 2 ) + if ( 0 && n > 2 ) printf("ALLHASHES FOUND! %d allhashes.%d issued %d\n",bp->bundleheight,coin->allhashes,n); //if ( bp->queued == 0 ) // iguana_bundleQ(myinfo,coin,bp,bp->n*5 + (rand() % 500)); @@ -1390,14 +1390,15 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct supernet_info *myinfo,struc iguana_bundleQ(myinfo,coin,firstbp,1000); } } - if ( i == n && i == match && firstbp == coin->current && (addr= req->addr) != 0 ) + if ( (addr= req->addr) != 0 && n >= coin->chain->bundlesize ) { - addr->RThashes[i] = firstbp->hashes[0]; + addr->RThashes[0] = firstbp->hashes[0]; for (i=1; ichain->bundlesize; i++) { iguana_serialize_block(myinfo,coin->chain,&addr->RThashes[i],serialized,(struct iguana_block *)&zblocks[i]); } - addr->numRThashes = n; + addr->numRThashes = coin->chain->bundlesize; + printf("firstbp.[%d] call allhashes\n",firstbp->hdrsi); if ( iguana_allhashcmp(myinfo,coin,firstbp,addr->RThashes,coin->chain->bundlesize) > 0 ) return(req); }