From 90aac49c77a7640d15f30d701ac6b9d895c67029 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Fri, 11 Mar 2022 00:23:54 +0000 Subject: [PATCH] Fixed RTM tx parsing' --- package.json | 2 +- rtm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dc3c3fd..4022229 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "11.2.0", + "version": "11.2.1", "main": "cryptoforknote-util", "author": { "name": "LucasJones", diff --git a/rtm.js b/rtm.js index ebffca0..f03a7a2 100644 --- a/rtm.js +++ b/rtm.js @@ -261,7 +261,7 @@ module.exports.RtmBlockTemplate = function(rpcData, poolAddress) { rpcData.transactions.forEach(function(tx, i) { if (tx.version != 1) { try { - bitcoin.Transaction.fromBuffer(Buffer.from(tx.data, 'hex'), true, i == 0); + bitcoin.Transaction.fromBuffer(Buffer.from(tx.data, 'hex'), false, false); } catch(err) { console.error("Skip RTM tx due to parse error: " + tx.data); return; // skip transaction if it is not parsed OK (varint coding seems to be different for RTM)