Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d9aef93e3c
  1. 4
      iguana/iguana777.c
  2. 2
      iguana/iguana_msg.c
  3. 2
      iguana/iguana_unspents.c

4
iguana/iguana777.c

@ -406,7 +406,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
return(-1);
if ( bp != coin->current )
{
iguana_ramchain_prefetch(coin,&bp->ramchain,3);
//iguana_ramchain_prefetch(coin,&bp->ramchain,3);
bp->converted = 1;
iguana_convert(coin,helperid,bp,0,0);
bp->converted = (uint32_t)time(NULL);
@ -435,7 +435,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
else hdrsi = coin->origbalanceswritten;
for (; hdrsi<max; hdrsi++,coin->balanceswritten++)
{
iguana_ramchain_prefetch(coin,&coin->bundles[hdrsi]->ramchain,3);
//iguana_ramchain_prefetch(coin,&coin->bundles[hdrsi]->ramchain,3);
if ( iguana_balancegen(coin,0,coin->bundles[hdrsi],0,coin->chain->bundlesize-1,0) == 0 )
bp->balancefinish = (uint32_t)time(NULL);
}

2
iguana/iguana_msg.c

@ -636,9 +636,9 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc
else if ( nonz == 0 && iguana_peerhdrrequest(coin,addr,hash2) > 0 )
nonz++;
}
}
printf("GOT HEADERS.(%s) n.%d len.%d\n",H->command,n,len);
}
}
else if ( (ishost= (strcmp(H->command,"version") == 0)) || strcmp(H->command,"verack") == 0 )
{
if ( addr != 0 )

2
iguana/iguana_unspents.c

@ -967,7 +967,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
starttime = (uint32_t)time(NULL);
txidind = B[starti].firsttxidind;
spendind = B[starti].firstvin;
iguana_ramchain_prefetch(coin,&bp->ramchain,0);
//iguana_ramchain_prefetch(coin,&bp->ramchain,0);
for (i=starti; i<numblocks; i++)
{
if ( txidind != B[i].firsttxidind || spendind != B[i].firstvin )

Loading…
Cancel
Save