diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index cb1edfb1a..414c80137 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -389,7 +389,13 @@ int32_t iguana_bundlefname(struct iguana_info *coin,struct iguana_bundle *bp,cha struct iguana_txid *iguana_bundletx(struct iguana_info *coin,struct iguana_bundle *bp,int32_t bundlei,struct iguana_txid *tx,int32_t txidind) { static const bits256 zero; - int32_t hdrsi,iter; int64_t Toffset; char fname[1024]; FILE *fp; struct iguana_ramchaindata rdata; + int32_t hdrsi,iter; struct iguana_txid *T; int64_t Toffset; char fname[1024]; FILE *fp; struct iguana_ramchaindata rdata,*rptr; + if ( (rptr= bp->ramchain.H.data) != 0 ) + { + T = (void *)(long)((long)rptr + (long)rptr->Toffset); + *tx = T[txidind]; + return(tx); + } for (iter=0; iter<2; iter++) { iguana_peerfname(coin,&hdrsi,iter==0?"DB/ro":"DB",fname,0,bp->hashes[0],zero,bp->n,1); @@ -756,8 +762,6 @@ int32_t iguana_bundleready(struct iguana_info *coin,struct iguana_bundle *bp,int return(-1); } } - //if ( ready == bp->n ) - // ready = iguana_bundlevalidate(coin,bp); return(ready); } diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index ca0d5573b..5bc2455aa 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1895,15 +1895,6 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp, for (i=0; in; i++) { if ( (len= iguana_peerblockrequest(coin,blockspace,max,0,bp->hashes[i],1)) < 0 ) - { - if ( errs++ == 0 ) - { - sleep(3); - if ( (len= iguana_peerblockrequest(coin,blockspace,max,0,bp->hashes[i],1)) > 0 ) - printf("validate error.[%d:%d] retry -> %d\n",bp->hdrsi,i,len); - } - } - if ( len < 0 ) { errs++; iguana_blockunmark(coin,bp->blocks[i],bp,i,1);