Compare commits

...

4 Commits

Author SHA1 Message Date
MoneroOcean 0bb1785826 Fixed KCN reward 2024-06-01 19:20:26 +03:00
MoneroOcean 1c48ad7e46 Adjusted KCN reward 2024-06-01 16:57:50 +03:00
MoneroOcean f0c26e6d5b Adjusted KCN reward 2024-06-01 16:57:24 +03:00
MoneroOcean 7a1d7271a1 RTM fix 2024-06-01 10:22:55 +03:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cryptoforknote-util",
"version": "15.3.10",
"version": "15.3.13",
"author": {
"name": "LucasJones",
"email": "lucasjonesdev@hotmail.co.uk"
+2 -2
View File
@@ -174,7 +174,7 @@ function createTransactionOutput(amount, payee, rewardToPool, reward, txOutputBu
}
function generateTransactionOutputs(rpcData, poolAddress, is_witness) {
let reward = rpcData.coinbasevalue;
let reward = rpcData.coinbasevalue + (rpcData.coinbasedevreward ? rpcData.coinbasedevreward.value : 0);
let rewardToPool = reward;
let txOutputBuffers = [];
@@ -229,7 +229,7 @@ function generateTransactionOutputs(rpcData, poolAddress, is_witness) {
module.exports.RtmBlockTemplate = function(rpcData, poolAddress) {
const extraNoncePlaceholderLength = 17;
const coinbaseVersion = rpcData.coinbaseaux.flags ? Buffer.concat([packUInt16LE(3), packUInt16LE(5)]) : Buffer.concat([packUInt16LE(1), packUInt16LE(0)]);
const coinbaseVersion = rpcData.coinbasedevreward ? Buffer.concat([packUInt16LE(1), packUInt16LE(0)]) : Buffer.concat([packUInt16LE(3), packUInt16LE(5)]);
const scriptSigPart1 = Buffer.concat([
serializeNumber(rpcData.height),