jl777 8 years ago
parent
commit
219036f6a6
  1. 10
      iguana/iguana_ramchain.c

10
iguana/iguana_ramchain.c

@ -1954,19 +1954,19 @@ long iguana_ramchain_data(struct supernet_info *myinfo,struct iguana_info *coin,
}
else
{
FILE *fp; struct iguana_ramchaindata tmp;
FILE *fp;
if ( (fp= fopen(fname,"wb")) != 0 )
{
*B = RO;
rdata->scriptspace = ramchain->H.scriptoffset = scriptspace;
rdata->stackspace = ramchain->H.stacksize = stackspace;
/*tmp = *ramchain->H.data;
iguana_ramchain_compact(fname,RAMCHAIN_ARG,&tmp,rdata,1,zcash);
if ( fwrite(&tmp,1,sizeof(tmp),fp) != sizeof(tmp) )
//tmp = *ramchain->H.data;
//iguana_ramchain_compact(fname,RAMCHAIN_ARG,&tmp,rdata,1,zcash);
if ( fwrite(rdata,1,sizeof(*rdata),fp) != sizeof(*rdata) )
{
printf("ramchain_save error writing header.%s\n",fname);
fpos = -1;
} else iguana_ramchain_saveaction(fname,RAMCHAIN_ARG,fp,&tmp,1,ramchain->H.scriptoffset,zcash);*/
} else iguana_ramchain_saveaction(fname,RAMCHAIN_ARG,fp,rdata,1,ramchain->H.scriptoffset,zcash);
fclose(fp);
origtxdata->datalen = (int32_t)rdata->allocsize;
ramchain->H.ROflag = 0;

Loading…
Cancel
Save