Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. convertedBlob = utils.cnUtil.convert_blob(shareBuffer, cnBlobType);
  2. let hard_fork_version = convertedBlob[0];
  3. if (config.hashingUtil) {
  4. hash = cryptoNight(convertedBlob);
  5. }
  6. else if (blockTemplate.isRandomX) {
  7. //hash = cryptoNight(convertedBlob, Buffer.from(blockTemplate.seed_hash, 'hex'));
  8. hash = cnHashing.randomx(convertedBlob, Buffer.from(blockTemplate.seed_hash, 'hex'),cnVariant);
  9. }
  10. else {
  11. if (typeof config.includeHeight !== "undefined" && config.includeHeight)
  12. hash = cryptoNight(convertedBlob, cnVariant, job.height);
  13. else
  14. hash = cryptoNight(convertedBlob, cnVariant);
  15. }
  16. log('info', logSystem, 'Mining pool algorithm: %s variant %d, Hard fork version: %d', [cnAlgorithm, cnVariant, hard_fork_version]);
  17. shareType = 'valid';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement