diff --git a/package.json b/package.json index 3bc0417..87d9482 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "15.3.9", + "version": "15.3.10", "author": { "name": "LucasJones", "email": "lucasjonesdev@hotmail.co.uk" diff --git a/rtm.js b/rtm.js index c15808e..bb79985 100644 --- a/rtm.js +++ b/rtm.js @@ -229,7 +229,7 @@ function generateTransactionOutputs(rpcData, poolAddress, is_witness) { module.exports.RtmBlockTemplate = function(rpcData, poolAddress) { const extraNoncePlaceholderLength = 17; - const coinbaseVersion = Buffer.concat([packUInt16LE(3), packUInt16LE(5)]); + const coinbaseVersion = rpcData.coinbaseaux.flags ? Buffer.concat([packUInt16LE(3), packUInt16LE(5)]) : Buffer.concat([packUInt16LE(1), packUInt16LE(0)]); const scriptSigPart1 = Buffer.concat([ serializeNumber(rpcData.height),