Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
6ff0b0aeb5
  1. 14
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_recv.c

14
iguana/iguana_bundles.c

@ -505,7 +505,7 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp)
printf("iguana_bundlecalcs.(%s) illegal hdrsi.%d bundlei.%d checki.%d\n",fname,hdrsi,bundlei,checki); printf("iguana_bundlecalcs.(%s) illegal hdrsi.%d bundlei.%d checki.%d\n",fname,hdrsi,bundlei,checki);
continue; continue;
} }
if ( 1 && bp->checkedtmp < bp->n && (fp= fopen(fname,"rb")) != 0 ) if ( 0 && bp->checkedtmp < bp->n && (fp= fopen(fname,"rb")) != 0 )
{ {
fseek(fp,0,SEEK_END); fseek(fp,0,SEEK_END);
if ( block->RO.recvlen == 0 ) if ( block->RO.recvlen == 0 )
@ -533,13 +533,13 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp)
bp->numcached++; bp->numcached++;
} }
} }
else if ( 0 ) else //if ( 0 )
{ {
printf("clear block?\n"); printf("cleared block?\n");
block->RO.recvlen = 0; //block->RO.recvlen = 0;
block->fpipbits = 0; //block->fpipbits = 0;
block->fpos = -1; //block->fpos = -1;
block->issued = bp->issued[bundlei] = 0; //block->issued = bp->issued[bundlei] = 0;
} }
} }
else if ( 0 ) else if ( 0 )

2
iguana/iguana_recv.c

@ -385,7 +385,7 @@ uint32_t iguana_allhashcmp(struct iguana_info *coin,struct iguana_bundle *bp,bit
block->mainchain = 1; block->mainchain = 1;
if ( prev != 0 ) if ( prev != 0 )
{ {
//block->RO.prev_block = prev->RO.hash2; block->RO.prev_block = prev->RO.hash2;
prev->hh.next = block; prev->hh.next = block;
block->hh.prev = prev; block->hh.prev = prev;
} }

Loading…
Cancel
Save