Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
00041f1e26
  1. 2
      iguana/iguana_msg.c
  2. 4
      iguana/iguana_unspents.c

2
iguana/iguana_msg.c

@ -633,7 +633,7 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc
len += iguana_rwbignum(0,&serialized[sizeof(struct iguana_msghdr) + len],sizeof(bits256),hash2.bytes); len += iguana_rwbignum(0,&serialized[sizeof(struct iguana_msghdr) + len],sizeof(bits256),hash2.bytes);
if ( bits256_nonz(hash2) == 0 ) if ( bits256_nonz(hash2) == 0 )
break; break;
else if ( nonz == 0 && iguana_peerhdrrequest(coin,addr,hash2) > 0 ) else if ( iguana_peerhdrrequest(coin,addr,hash2) > 0 )
nonz++; nonz++;
} }
printf("GOT HEADERS.(%s) n.%d len.%d\n",H->command,n,len); printf("GOT HEADERS.(%s) n.%d len.%d\n",H->command,n,len);

4
iguana/iguana_unspents.c

@ -643,7 +643,7 @@ struct iguana_bundle *iguana_externalspent(struct iguana_info *coin,bits256 *pre
printf("%p iguana_txidfind.[%.0f] ave %.2f micros, total %.2f seconds | duration %.3f millis\n",spentbp->ramchain.txbits,coin->txidfind_num,(coin->txidfind_totalmillis*1000.)/coin->txidfind_num,coin->txidfind_totalmillis/1000.,duration); printf("%p iguana_txidfind.[%.0f] ave %.2f micros, total %.2f seconds | duration %.3f millis\n",spentbp->ramchain.txbits,coin->txidfind_num,(coin->txidfind_totalmillis*1000.)/coin->txidfind_num,coin->txidfind_totalmillis/1000.,duration);
coin->txidfind_totalmillis += duration; coin->txidfind_totalmillis += duration;
coin->txidfind_num += 1.; coin->txidfind_num += 1.;
if ( 1 && coin->PREFETCHLAG > 0 ) if ( 0 && coin->PREFETCHLAG > 0 )
{ {
if ( spentbp->lastprefetch == 0 ) if ( spentbp->lastprefetch == 0 )
{ {
@ -976,7 +976,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
starttime = (uint32_t)time(NULL); starttime = (uint32_t)time(NULL);
txidind = B[starti].firsttxidind; txidind = B[starti].firsttxidind;
spendind = B[starti].firstvin; spendind = B[starti].firstvin;
iguana_ramchain_prefetch(coin,&bp->ramchain,0); iguana_ramchain_prefetch(coin,&bp->ramchain,3);
for (i=starti; i<numblocks; i++) for (i=starti; i<numblocks; i++)
{ {
if ( txidind != B[i].firsttxidind || spendind != B[i].firstvin ) if ( txidind != B[i].firsttxidind || spendind != B[i].firstvin )

Loading…
Cancel
Save