diff --git a/iguana/exchanges/bitcoin.h b/iguana/exchanges/bitcoin.h index 7a650e61d..c0784348c 100755 --- a/iguana/exchanges/bitcoin.h +++ b/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; }; diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 7c0444734..170bb2f13 100755 --- a/iguana/iguana777.h +++ b/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 diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index a1e35ade0..6394a2f89 100755 --- a/iguana/iguana_ramchain.c +++ b/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;