From 6aa15bcc191e55d4e47cd240d44b6f64ab1ab592 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 6 Apr 2016 19:12:21 -0500 Subject: [PATCH] test --- iguana/iguana_bundles.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 3d0ef4dfb..9102b8526 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -624,12 +624,16 @@ int32_t iguana_bundleready(struct iguana_info *coin,struct iguana_bundle *bp) } else { + fname[0] = 0; checki = iguana_peerfname(coin,&hdrsi,GLOBALTMPDIR,fname,0,block->RO.hash2,zero,1,0); - if ( (fp= fopen(fname,"rb")) != 0 ) + if ( hdrsi == bp->hdrsi && checki == i && (fp= fopen(fname,"rb")) != 0 ) { fseek(fp,0,SEEK_END); if ( ftell(fp) > sizeof(struct iguana_ramchaindata) ) - ready++; + { + printf("[%d:%d] %s %ld\n",bp->hdrsi,i,fname,ftell(fp)); + ready++; + } fclose(fp); } else iguana_blockunmark(coin,block,bp,i,0); }