diff --git a/package.json b/package.json index 8a6c146..1aa6b3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "15.3.16", + "version": "15.3.17", "author": { "name": "LucasJones", "email": "lucasjonesdev@hotmail.co.uk" diff --git a/rtm.js b/rtm.js index 6273bba..ebcc6c6 100644 --- a/rtm.js +++ b/rtm.js @@ -240,7 +240,7 @@ module.exports.RtmBlockTemplate = function(rpcData, poolAddress) { const scriptSigPart2 = serializeString('/nodeStratum/'); - const is_witness = rpcData.default_witness_commitment !== undefined; + const is_witness = false;//rpcData.default_witness_commitment !== undefined; const blob1 = Buffer.concat([ coinbaseVersion, @@ -281,7 +281,7 @@ module.exports.RtmBlockTemplate = function(rpcData, poolAddress) { // tx input scripts instead of size of script part so not sure how to parse them // just drop them for now // example: https://explorer.raptoreum.com/tx/1461d70fa8362b0896e2e9be6312521f2684f22c9b0f9152695f33f67d9f9d3f - rpcData.transactions.forEach(function(tx) { + /*rpcData.transactions.forEach(function(tx) { if (tx.version != 1) { try { bitcoin.Transaction.fromBuffer(Buffer.from(tx.data, 'hex'), false, false); @@ -293,7 +293,7 @@ module.exports.RtmBlockTemplate = function(rpcData, poolAddress) { } else { console.error("Skip RTM v1 tx: " + tx.data); } - }); + });*/ const txn = varIntBuffer(txs.length + 1); return {