Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- convertedBlob = utils.cnUtil.convert_blob(shareBuffer, cnBlobType);
- let hard_fork_version = convertedBlob[0];
- if (config.hashingUtil) {
- hash = cryptoNight(convertedBlob);
- }
- else if (blockTemplate.isRandomX) {
- //hash = cryptoNight(convertedBlob, Buffer.from(blockTemplate.seed_hash, 'hex'));
- hash = cnHashing.randomx(convertedBlob, Buffer.from(blockTemplate.seed_hash, 'hex'),cnVariant);
- }
- else {
- if (typeof config.includeHeight !== "undefined" && config.includeHeight)
- hash = cryptoNight(convertedBlob, cnVariant, job.height);
- else
- hash = cryptoNight(convertedBlob, cnVariant);
- }
- log('info', logSystem, 'Mining pool algorithm: %s variant %d, Hard fork version: %d', [cnAlgorithm, cnVariant, hard_fork_version]);
- shareType = 'valid';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement