From 4b1c69cb1fa1f91c76fb8c16d13136ce473dd641 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 2 Nov 2016 20:54:16 -0300 Subject: [PATCH] test --- iguana/iguana_msg.c | 4 ++-- iguana/iguana_peers.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index 741ac700e..f561713ee 100755 --- a/iguana/iguana_msg.c +++ b/iguana/iguana_msg.c @@ -1019,9 +1019,9 @@ int32_t iguana_msgparser(struct supernet_info *myinfo,struct iguana_info *coin,s { bits256 auxhash2,prevhash2; struct iguana_msgtx *tx; struct iguana_msgmerkle *coinbase_branch=0,*blockchain_branch=0; struct iguana_msgblock parentblock; if ( rawmem->totalsize == 0 ) - iguana_meminit(rawmem,"bighdrs",0,IGUANA_MAXPACKETSIZE * 2,0); + iguana_meminit(rawmem,"bighdrs",0,IGUANA_MAXPACKETSIZE * 4,0); memset(prevhash2.bytes,0,sizeof(prevhash2)); - zblocks = mycalloc('z',1,(int32_t)(sizeof(struct iguana_zblock) * n * 2)); + zblocks = mycalloc('z',1,(int32_t)(sizeof(struct iguana_zblock) * n)); //printf("%s got %d headers len.%d\n",coin->symbol,n,recvlen); for (i=0; iRAWMEM.ptr == 0 ) - iguana_meminit(&addr->RAWMEM,addr->ipaddr,0,IGUANA_MAXPACKETSIZE * 2,0); + iguana_meminit(&addr->RAWMEM,addr->ipaddr,0,IGUANA_MAXPACKETSIZE * 3,0); if ( addr->TXDATA.ptr == 0 ) - iguana_meminit(&addr->TXDATA,"txdata",0,IGUANA_MAXPACKETSIZE * 2,0); + iguana_meminit(&addr->TXDATA,"txdata",0,IGUANA_MAXPACKETSIZE * 3,0); if ( addr->HASHMEM.ptr == 0 ) iguana_meminit(&addr->HASHMEM,"HASHPTRS",0,256,0);//IGUANA_MAXPACKETSIZE*16,0); //printf("Init %s memory %p %p %p\n",addr->ipaddr,addr->RAWMEM.ptr,addr->TXDATA.ptr,addr->HASHMEM.ptr);