From 262cf6e776a75fd51f7a023168dcf8af14777efa Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 15 Mar 2016 05:16:03 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 1 + iguana/iguana777.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 94c359a4d..657fbd888 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -97,6 +97,7 @@ void iguana_recvalloc(struct iguana_info *coin,int32_t numitems) { //coin->blocks.ptrs = myrealloc('W',coin->blocks.ptrs,coin->blocks.ptrs==0?0:coin->blocks.maxbits * sizeof(*coin->blocks.ptrs),numitems * sizeof(*coin->blocks.ptrs)); coin->blocks.RO = myrealloc('W',coin->blocks.RO,coin->blocks.RO==0?0:coin->blocks.maxbits * sizeof(*coin->blocks.RO),numitems * sizeof(*coin->blocks.RO)); + coin->utxobits = myrealloc('u',coin->utxobits,coin->utxobits==0?0:coin->blocks.maxbits/8+1,numitems/8+1); printf("realloc waitingbits.%d -> %d\n",coin->blocks.maxbits,numitems); coin->blocks.maxbits = numitems; } diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 625debd97..aed6c55be 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -38,7 +38,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_MAXPENDHDRS 1 #define _IGUANA_MAXPENDING 7 -#define IGUANA_MINPENDBUNDLES 32 +#define IGUANA_MINPENDBUNDLES 50 #define IGUANA_MAXPENDBUNDLES 64 #define IGUANA_BUNDLELOOP 10000 #define IGUANA_RPCPORT 7778 @@ -476,7 +476,7 @@ struct iguana_info uint32_t recvtime,hdrstime,backstoptime,lastbundletime,numreqsent,numbundlesQ,lastbundleitime; double backstopmillis; bits256 backstophash2; int64_t spaceused; int32_t initialheight,mapflags,minconfirms,numrecv,bindsock,isRT,backstop,blocksrecv,merging,polltimeout,numreqtxids,allhashes; bits256 reqtxids[64]; - void *launched,*started; + void *launched,*started; uint8_t *utxobits; uint64_t bloomsearches,bloomhits,bloomfalse,collisions; uint8_t blockspace[IGUANA_MAXPACKETSIZE + 8192]; struct OS_memspace blockMEM; struct iguana_blocks blocks; bits256 APIblockhash,APItxid; char *APIblockstr; struct iguana_waccount *wallet;