Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f3e6f347b9
  1. 2
      iguana/exchanges/bitcoin.h
  2. 2
      iguana/iguana777.h
  3. 4
      iguana/iguana_ramchain.c

2
iguana/exchanges/bitcoin.h

@ -57,7 +57,7 @@
#define IGUANA_SCRIPT_DATA 11
#define IGUANA_SCRIPT_STRANGE 15
#define IGUANA_MAXSCRIPTSIZE 2048
#define IGUANA_MAXSCRIPTSIZE 16384
struct bp_key { EC_KEY *k; };

2
iguana/iguana777.h

@ -20,7 +20,7 @@
typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t len);
#define IGUANA_MAXSCRIPTSIZE 2048
#define IGUANA_MAXSCRIPTSIZE 16384
//#define IGUANA_DISABLEPEERS
#define IGUANA_MAXCOINS 64

4
iguana/iguana_ramchain.c

@ -758,7 +758,7 @@ int32_t iguana_vinscriptdecode(struct iguana_info *coin,struct iguana_ramchain *
len += iguana_rwvarint32(0,&metascript[len],(void *)&totalsize);
if ( totalsize > IGUANA_MAXSCRIPTSIZE )
{
printf("totalsize too big %d\n",totalsize);
fprintf(stderr,"totalsize too big %d\n",totalsize);
return(0);
}
// expand metascript!!
@ -2544,7 +2544,7 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str
struct iguana_ramchain *R,*mapchain,*dest,newchain; uint32_t fpipbits,now = (uint32_t)time(NULL);
int32_t i,numtxids,valid,sigspace,sigsize,pubkeysize,pubkeyspace,numunspents,numspends,numpkinds,numexternaltxids,scriptspace,fpos; struct iguana_block *block;
struct OS_memspace HASHMEM; int32_t err,j,num,hdrsi,bundlei,firsti= 1,retval = -1;
if ( bp->bundleheight == 142000 || bp->bundleheight == 306000 || bp->bundleheight == 128000 || bp->bundleheight == 254000 || bp->bundleheight == 190000 || bp->bundleheight == 118000 || bp->bundleheight == 62000 || bp->bundleheight == 148000 )
if ( bp->bundleheight == 316000 || bp->bundleheight == 142000 || bp->bundleheight == 306000 || bp->bundleheight == 128000 || bp->bundleheight == 254000 || bp->bundleheight == 190000 || bp->bundleheight == 118000 || bp->bundleheight == 62000 || bp->bundleheight == 148000 )
return(0);
memset(&HASHMEM,0,sizeof(HASHMEM));
B = 0, Ux = 0, Sx = 0, P = 0, A = 0, X = 0, Kspace = TXbits = PKbits = 0, U = 0, S = 0, T = 0;

Loading…
Cancel
Save