diff --git a/README.md b/README.md index 36a90a51d..10ccb636a 100755 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ > #TL;DR# > -> ```sudo apt-get update; sudo apt-get install libcurl4-gnutls-dev libssl-dev libgmp3-dev; git clone https://github.com/jl777/SuperNET; cd SuperNET; ./m_onetime m_unix; ./m_unix; agents/iguana``` +> ```sudo apt-get update; sudo apt-get install build-essentials libcurl4-gnutls-dev autotools-dev autoconf libgmp3-dev libssl-dev libgmp3-dev; git clone https://github.com/jl777/SuperNET; cd SuperNET; ./m_onetime m_unix; ./m_unix; agents/iguana``` > > The above one line gets SuperNET installed, built and launched for unix. > diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 5562dfec1..c33e7ee98 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -42,7 +42,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_MAXPENDHDRS 1 #define IGUANA_MAXPENDINGREQUESTS 64 -#define IGUANA_PENDINGREQUESTS 64 +#define IGUANA_PENDINGREQUESTS 512 #define IGUANA_MINPENDBUNDLES 2 #define IGUANA_MAXPENDBUNDLES 256 #define IGUANA_RPCPORT 7778 diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 66ba095fb..eacc3691c 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -432,6 +432,8 @@ struct iguana_block *iguana_bundleblock(struct iguana_info *coin,bits256 *hash2p { struct iguana_bundle *nextbp; struct iguana_block *block = 0; memset(hash2p,0,sizeof(*hash2p)); + if ( bp == 0 ) + return(0); if ( i == bp->n ) { if ( bits256_nonz(bp->nextbundlehash2) != 0 ) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index d0296926f..05b57dca5 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -2224,8 +2224,8 @@ int64_t iguana_ramchainopen(struct iguana_info *coin,struct iguana_ramchain *ram if ( rdata->scriptspace > scriptspace ) scriptspace = rdata->scriptspace; } - numtxids *= 1.5; numexternaltxids *= 1.5, scriptspace *= 1.5; - numunspents *= 1.5, numspends *= 1.5, numpkinds *= 1.5; + numtxids *= 2.5; numexternaltxids *= 2.5, scriptspace *= 2.5; + numunspents *= 2.5, numspends *= 2.5, numpkinds *= 2.5; if ( mem->ptr == 0 ) { allocsize = _iguana_rdata_action(0,0,0,0,1,numtxids,numunspents,numspends,numpkinds,numexternaltxids,scriptspace,0,0,0,0,0,RAMCHAIN_ARG,numblocks); diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 39166a326..5104a87cf 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1069,10 +1069,19 @@ int32_t iguana_reqblocks(struct iguana_info *coin) lflag = 0; hdrsi = (coin->blocks.hwmchain.height+1) / coin->chain->bundlesize; bundlei = (coin->blocks.hwmchain.height+1) % coin->chain->bundlesize; - if ( (next= iguana_blockfind("reqloop",coin,iguana_blockhash(coin,coin->blocks.hwmchain.height+1))) == 0 ) + if ( 1 ) { - if ( (block= iguana_blockfind("reqloop2",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) - next = block->hh.next; //, next/block->mainchain = 1; + if ( (next= iguana_bundleblock(coin,&hash2,coin->bundles[hdrsi],bundlei)) == 0 ) + { + if ( (block= iguana_blockfind("reqloop2",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) + next = block->hh.next; //, next/block->mainchain = 1; + } + } + else + { + if ( (next= iguana_blockfind("reqloop",coin,iguana_blockhash(coin,coin->blocks.hwmchain.height+1))) == 0 ) + { + } } if ( next == 0 && hdrsi < coin->bundlescount && (bp= coin->bundles[hdrsi]) != 0 && (next= bp->blocks[bundlei]) != 0 ) {