fseek(outfile, nDataLen, SEEK_SET);
size_t nReturn;
CChainWalkContext cwc;
uint64 nIndex[2];
time_t tStart = time(NULL);
// std::cout << "Starting to generate chains" << std::endl;
fseek(outfile, nDataLen, SEEK_SET);
size_t nReturn;
CChainWalkContext cwc;
uint64 nIndex[2];
time_t tStart = time(NULL);
// std::cout << "Starting to generate chains" << std::endl;
- if ((nReturn = fwrite(nIndex, 1, 16, outfile)) != 16)
+ if ((nReturn = fwrite(&nIndex[1], 1, 8, outfile)) != 8)
// Write file
fseek(outfile, 0, SEEK_SET);
for(uint32 i = 0; i < nRainbowChainCount; i++)
{
// Write file
fseek(outfile, 0, SEEK_SET);
for(uint32 i = 0; i < nRainbowChainCount; i++)
{
- fwrite(&pChain[i], 1, 16, outfile);
+ fwrite(&pChain[i].nIndexE, 1, 8, outfile);
fwrite(&pChain[i].nCheckPoint, 2, 1, outfile);
}
delete[] pChain;
}
fwrite(&pChain[i].nCheckPoint, 2, 1, outfile);
}
delete[] pChain;
}