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

4
iguana/iguana_ramchain.c

@ -1960,13 +1960,13 @@ long iguana_ramchain_data(struct supernet_info *myinfo,struct iguana_info *coin,
*B = RO; *B = RO;
rdata->scriptspace = ramchain->H.scriptoffset = scriptspace; rdata->scriptspace = ramchain->H.scriptoffset = scriptspace;
rdata->stackspace = ramchain->H.stacksize = stackspace; rdata->stackspace = ramchain->H.stacksize = stackspace;
if ( fwrite(rdata,1,sizeof(*rdata),fp) != sizeof(*rdata) ) /*if ( fwrite(rdata,1,sizeof(*rdata),fp) != sizeof(*rdata) )
{ {
printf("ramchain_save error writing header.%s\n",fname); printf("ramchain_save error writing header.%s\n",fname);
fpos = -1; fpos = -1;
} }
fpos = (int32_t)ftell(fp); fpos = (int32_t)ftell(fp);
/*fwrite(B,1,sizeof(*B),fp); fwrite(B,1,sizeof(*B),fp);
fwrite(T,rdata->numtxids,sizeof(*T),fp); fwrite(T,rdata->numtxids,sizeof(*T),fp);
fwrite(U,rdata->numunspents,sizeof(*U),fp); fwrite(U,rdata->numunspents,sizeof(*U),fp);
fwrite(S,rdata->numspends,sizeof(*S),fp);*/ fwrite(S,rdata->numspends,sizeof(*S),fp);*/

Loading…
Cancel
Save