From 5bbf73b57363deb8fc828d8062728cd16b8e8100 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Apr 2016 00:43:04 -0600 Subject: [PATCH] test --- iguana/iguana_recv.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index eb6cee28d..d1b0825ef 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -636,10 +636,10 @@ struct iguana_bundle *iguana_bundleset(struct iguana_info *coin,struct iguana_bl iguana_bundlehash2add(coin,0,bp,bundlei,hash2); if ( bp->emitfinish == 0 ) { - if ( bits256_nonz(bp->hashes[bundlei]) != 0 ) + if ( bits256_nonz(block->RO.hash2) != 0 ) { block->fpos = -1; - checki = iguana_peerfname(coin,&hdrsi,GLOBALTMPDIR,fname,0,bp->hashes[bundlei],bundlei>0?bp->hashes[bundlei-1]:zero,1,0); + checki = iguana_peerfname(coin,&hdrsi,GLOBALTMPDIR,fname,0,block->RO.hash2,zero,1,0); if ( (fp= fopen(fname,"rb")) != 0 ) { fseek(fp,0,SEEK_END); @@ -647,11 +647,10 @@ struct iguana_bundle *iguana_bundleset(struct iguana_info *coin,struct iguana_bl block->fpipbits = 1; block->txvalid = 1; block->fpos = 0; - //printf("initialize with fp.[%d:%d] len.%d\n",hdrsi,bundlei,block->RO.recvlen); + printf("initialize with fp.[%d:%d] len.%d\n",hdrsi,bundlei,block->RO.recvlen); fclose(fp); } - } - else iguana_blockQ("bundleset",coin,bp,bundlei,block->RO.hash2,0); + } else iguana_blockQ("bundleset",coin,bp,bundlei,block->RO.hash2,0); } //printf("bundlehashadd set.%d\n",bundlei); if ( bundlei > 0 )