Compare commits

...

5 Commits

Author SHA1 Message Date
MoneroOcean 1d0ada1c82 Fixed KCN blob contruction in all cases 2024-06-01 20:31:28 +03:00
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
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ module.exports.constructNewRtmBlob = function(blockTemplate, nonceBuff) {
};
module.exports.constructNewKcnBlob = function(blockTemplate, nonceBuff) {
update_merkle_root_hash(80, false, blockTemplate, blockTemplate);
update_merkle_root_hash3(80, false, blockTemplate, blockTemplate);
nonceBuff.copy(blockTemplate, 76, 0, 4);
return blockTemplate;
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cryptoforknote-util",
"version": "15.3.10",
"version": "15.3.14",
"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),