Compare commits

...

2 Commits

Author SHA1 Message Date
MoneroOcean 261c518133 KCN fix 2024-05-31 20:19:14 +03:00
MoneroOcean 2a1741ac52 KCN fix 2024-05-31 20:16:33 +03:00
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -221,8 +221,20 @@ module.exports.convertRtmBlob = function(blobBuffer) {
return header;
};
module.exports.convertKcnBlob = function(blobBuffer) {
let header = blobBuffer.slice(0, 80);
update_merkle_root_hash(80, false, blobBuffer, header);
return header;
};
module.exports.constructNewRtmBlob = function(blockTemplate, nonceBuff) {
update_merkle_root_hash(80, true, blockTemplate, blockTemplate);
nonceBuff.copy(blockTemplate, 76, 0, 4);
return blockTemplate;
};
module.exports.constructNewKcnBlob = function(blockTemplate, nonceBuff) {
update_merkle_root_hash(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.5",
"version": "15.3.7",
"author": {
"name": "LucasJones",
"email": "lucasjonesdev@hotmail.co.uk"