Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
de60d7209d
  1. 2
      iguana/iguana777.h
  2. 7
      iguana/iguana_unspents.c

2
iguana/iguana777.h

@ -477,7 +477,7 @@ struct iguana_info
struct iguana_bitmap screen;
//struct pollfd fds[IGUANA_MAXPEERS]; struct iguana_peer bindaddr; int32_t numsocks;
struct OS_memspace TXMEM,MEM,MEMB[IGUANA_MAXBUNDLESIZE];
struct OS_memspace RTHASHMEM,TXMEM,MEM,MEMB[IGUANA_MAXBUNDLESIZE];
queue_t acceptQ,hdrsQ,blocksQ,priorityQ,possibleQ,cacheQ,recvQ;
double parsemillis,avetime; uint32_t Launched[8],Terminated[8];
portable_mutex_t peers_mutex,blocks_mutex;

7
iguana/iguana_unspents.c

@ -13,6 +13,10 @@
* *
******************************************************************************/
#define uthash_malloc(size) iguana_memalloc(&coin->RThashmem,size,1)
#define uthash_free(ptr,size)
#include "iguana777.h"
#include "exchanges/bitcoin.h"
@ -1351,6 +1355,7 @@ void iguana_RTramchainfree(struct iguana_info *coin)
coin->RTheight = coin->balanceswritten * coin->chain->bundlesize;
coin->RTgenesis = 0;
iguana_ramchain_free(coin,&coin->RTramchain,1);
iguana_mempurge(&coin->RTHASHMEM);
}
void iguana_RTramchainalloc(struct iguana_info *coin,struct iguana_bundle *bp)
@ -1386,6 +1391,8 @@ void iguana_RTramchainalloc(struct iguana_info *coin,struct iguana_bundle *bp)
dest->H.txidind = dest->H.unspentind = dest->H.spendind = dest->pkind = dest->H.data->firsti;
dest->externalind = dest->H.stacksize = 0;
dest->H.scriptoffset = 1;
if ( coin->RTHASHMEM.ptr == 0 )
iguana_meminit(&coin->RTHASHMEM,"RTHASH",0,1024L*1024L*1024L,0);
if ( coin->PREFETCHLAG != 0 )
{
iguana_ramchain_prefetch(coin,&coin->RTramchain,0);

Loading…
Cancel
Save