From 494e6aa059d06ee9634d086201b9a0cdcb4c2a4c Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Tue, 30 Nov 2021 16:27:45 +0000 Subject: [PATCH] GR support --- index.js | 2 -- rtm.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/index.js b/index.js index 1c42acb..bc089eb 100644 --- a/index.js +++ b/index.js @@ -154,14 +154,12 @@ module.exports.RavenBlockTemplate = function(rpcData, poolAddress) { function update_merkle_root_hash(offset, payload, blob_in, blob_out) { const nTransactions = varuint.decode(blob_in, offset); - console.log("2x" + nTransactions); offset += varuint.decode.bytes; let transactions = []; for (let i = 0; i < nTransactions; ++i) { const tx = bitcoin.Transaction.fromBuffer(blob_in.slice(offset), true, payload && i == 0); transactions.push(tx); offset += tx.byteLength(); - console.log("2xx " + tx.byteLength()); } getMerkleRoot(transactions).copy(blob_out, 4 + 32); }; diff --git a/rtm.js b/rtm.js index dfead80..8052d4e 100644 --- a/rtm.js +++ b/rtm.js @@ -253,8 +253,6 @@ module.exports.RtmBlockTemplate = function(rpcData, poolAddress) { let bits = Buffer.from(rpcData.bits, 'hex'); bits.writeUInt32LE(bits.readUInt32BE()); - console.log("1x" + (rpcData.transactions.length + 1) + " " + (blob1.length + extraNoncePlaceholderLength + blob2.length)); - return { difficulty: parseFloat((diff1 / bignum(rpcData.target, 16).toNumber()).toFixed(9)), height: rpcData.height,