Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
92a93a4285
  1. 2
      README.md
  2. 2
      iguana/iguana777.h
  3. 2
      iguana/iguana_bundles.c
  4. 4
      iguana/iguana_ramchain.c
  5. 15
      iguana/iguana_recv.c

2
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.
>

2
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

2
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 )

4
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);

15
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 )
{

Loading…
Cancel
Save