SHARE
TWEET

Untitled

a guest Aug 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top