MCPcopy Create free account
hub / github.com/brichard19/BitCrack / writeCheckpoint

Function writeCheckpoint

KeyFinder/main.cpp:310–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void writeCheckpoint(secp256k1::uint256 nextKey)
311{
312 std::ofstream tmp(_config.checkpointFile, std::ios::out);
313
314 tmp << "start=" << _config.startKey.toString() << std::endl;
315 tmp << "next=" << nextKey.toString() << std::endl;
316 tmp << "end=" << _config.endKey.toString() << std::endl;
317 tmp << "blocks=" << _config.blocks << std::endl;
318 tmp << "threads=" << _config.threads << std::endl;
319 tmp << "points=" << _config.pointsPerThread << std::endl;
320 tmp << "compression=" << getCompressionString(_config.compression) << std::endl;
321 tmp << "device=" << _config.device << std::endl;
322 tmp << "elapsed=" << (_config.elapsed + util::getSystemTime() - _startTime) << std::endl;
323 tmp << "stride=" << _config.stride.toString();
324 tmp.close();
325}
326
327void readCheckpointFile()
328{

Callers 1

statusCallbackFunction · 0.85

Calls 3

getCompressionStringFunction · 0.85
getSystemTimeFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected