diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index 8db9e4974..08061e4e1 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 * 4,0); + iguana_meminit(rawmem,"bighdrs",0,IGUANA_MAXPACKETSIZE * 3,0); memset(prevhash2.bytes,0,sizeof(prevhash2)); - zblocks = mycalloc('z',2,(int32_t)(sizeof(struct iguana_zblock) * n)); + 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; ipriorityQ); + req = queue_dequeue(&coin->priorityQ); if ( flag == 0 && req == 0 && addr->pendblocks < limit ) { priority = 0; diff --git a/includes/iguana_structs.h b/includes/iguana_structs.h index b037439a3..9d4bc44a5 100755 --- a/includes/iguana_structs.h +++ b/includes/iguana_structs.h @@ -248,7 +248,7 @@ struct iguana_counts uint32_t firsttxidind,firstunspentind,firstspendind,firstpkind; uint64_t credits,debits; struct iguana_block block; -}PACKEDSTRUCT; +} PACKEDSTRUCT; struct iguana_blocks { @@ -263,7 +263,7 @@ struct iguana_ledger { struct iguana_counts snapshot; //struct iguana_account accounts[]; -}PACKEDSTRUCT; +} PACKEDSTRUCT; // ramchain temp file structures struct iguana_unspent20 { uint64_t value; uint32_t scriptpos,txidind:28,type:4; uint16_t scriptlen,fileid; uint8_t rmd160[20]; }PACKEDSTRUCT;