Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8591ff0e77
  1. 2
      iguana/iguana777.c
  2. 13
      iguana/iguana_unspents.c

2
iguana/iguana777.c

@ -474,7 +474,7 @@ void iguana_helper(void *arg)
if ( coin->PREFETCHLAG > 0 )
{
iguana_ramchain_prefetch(coin,&bp->ramchain,0);
if ( bp->hdrsi > 0 )
if ( 0 && bp->hdrsi > 0 )
iguana_prefetch(coin,bp,bp->hdrsi-1,1);
}
if ( (retval= iguana_spendvectors(coin,bp,&bp->ramchain,0,bp->n,0)) >= 0 )

13
iguana/iguana_unspents.c

@ -1212,10 +1212,13 @@ int32_t iguana_mapvolatiles(struct iguana_info *coin,struct iguana_ramchain *ram
if ( err == 0 )
{
//printf("mapped extra.%s\n",fname);
int32_t tlen; uint8_t *TXbits = (uint8_t *)((long)ramchain->H.data + ramchain->H.data->TXoffset);
tlen = (int32_t)hconv_bitlen(ramchain->H.data->numtxsparse * ramchain->H.data->txsparsebits);
ramchain->txbits = calloc(1,tlen);
memcpy(ramchain->txbits,TXbits,tlen);
if ( ramchain->txbits == 0 )
{
int32_t tlen; uint8_t *TXbits = (uint8_t *)((long)ramchain->H.data + ramchain->H.data->TXoffset);
tlen = (int32_t)hconv_bitlen(ramchain->H.data->numtxsparse * ramchain->H.data->txsparsebits);
ramchain->txbits = calloc(1,tlen);
memcpy(ramchain->txbits,TXbits,tlen);
}
break;
}
iguana_purgevolatiles(coin,ramchain);
@ -1802,7 +1805,7 @@ void iguana_RTramchainalloc(struct iguana_info *coin,struct iguana_bundle *bp)
if ( coin->PREFETCHLAG > 0 )
{
iguana_ramchain_prefetch(coin,&coin->RTramchain,0);
iguana_prefetch(coin,bp,coin->bundlescount,1);
//iguana_prefetch(coin,bp,coin->bundlescount,1);
}
}
}

Loading…
Cancel
Save