jl777 8 years ago
parent
commit
59433da231
  1. 4
      iguana/iguana_ramchain.c

4
iguana/iguana_ramchain.c

@ -1965,7 +1965,7 @@ long iguana_ramchain_data(struct supernet_info *myinfo,struct iguana_info *coin,
printf("ramchain_save error writing header.%s\n",fname);
fpos = -1;
}
uint64_t offset = sizeof(struct iguana_ramchaindata);
/*uint64_t offset = sizeof(struct iguana_ramchaindata);
void *destptr = (void *)(long)((long)rdata + offset);
fpos = (int32_t)ftell(fp);
//printf("bROsize.%d\n",bROsize);
@ -1974,7 +1974,7 @@ long iguana_ramchain_data(struct supernet_info *myinfo,struct iguana_info *coin,
Ux = destptr, Sx = destptr, P = destptr, A = destptr, X = destptr, TXbits = destptr, PKbits = destptr, Kspace = destptr;
U = iguana_ramchain_offset(fname,rdata,0,fp,fpos,U,&offset,(sizeof(struct iguana_unspent20) * rdata->numunspents),rdata->allocsize);
S = iguana_ramchain_offset(fname,rdata,0,fp,fpos,S,&offset,(sizeof(struct iguana_spend256) * rdata->numspends),rdata->allocsize);
//iguana_ramchain_saveaction(fname,RAMCHAIN_ARG,fp,rdata,1,ramchain->H.scriptoffset,zcash);
//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