Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0c4d562c0b
  1. 4
      iguana/iguana777.h
  2. 7
      iguana/iguana_ramchain.c

4
iguana/iguana777.h

@ -38,8 +38,8 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_TAILPERCENTAGE 1.0
#define IGUANA_MAXPENDHDRS 1
#define _IGUANA_MAXPENDING 3
#define IGUANA_MINPENDBUNDLES 32
#define IGUANA_MAXPENDBUNDLES 128
#define IGUANA_MINPENDBUNDLES 16
#define IGUANA_MAXPENDBUNDLES 64
#define IGUANA_BUNDLELOOP 77
#define IGUANA_RPCPORT 7778
#define IGUANA_MAXRAMCHAINSIZE ((uint64_t)1024L * 1024L * 1024L * 16)

7
iguana/iguana_ramchain.c

@ -1788,8 +1788,15 @@ long iguana_ramchain_data(struct iguana_info *coin,struct iguana_peer *addr,stru
int32_t i,j,fpos,pubkeysize,msize,sigsize,firsti=1,err,flag,bundlei = -2; bits256 merkle_root;
struct iguana_bundle *bp = 0; struct iguana_block *block; uint32_t scriptspace,stackspace;
totalrecv += recvlen;
if ( bits256_nonz(origtxdata->block.RO.merkle_root) == 0 )
return(-1);
for (i=0; i<sizeof(addr->dirty)/sizeof(*addr->dirty); i++)
{
memset(&origtxdata->block.RO.prev_block,0,sizeof(bits256));
origtxdata->block.RO.recvlen = 0;
origtxdata->block.issued = 0;
addr->dirty[i] = 0;
}
msize = (int32_t)sizeof(bits256) * (txn_count+1) * 2;
if ( msize <= addr->TXDATA.totalsize )
{

Loading…
Cancel
Save