Compare commits

...

1 Commits

Author SHA1 Message Date
MoneroOcean 170d0c0ec9 Added RTM block ID function 2021-12-09 01:12:27 +00:00
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -164,10 +164,14 @@ function update_merkle_root_hash(offset, payload, blob_in, blob_out) {
getMerkleRoot(transactions).copy(blob_out, 4 + 32);
};
module.exports.blockHashBuff = function(blobBuffer) {
return reverseBuffer(hash256(blobBuffer));
};
module.exports.convertRavenBlob = function(blobBuffer) {
let header = blobBuffer.slice(0, 80);
update_merkle_root_hash(80 + 8 + 32, false, blobBuffer, header);
return reverseBuffer(hash256(header));
return module.exports.blockHashBuff(header);
};
module.exports.constructNewRavenBlob = function(blockTemplate, nonceBuff, mixhashBuff) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cryptoforknote-util",
"version": "11.0.1",
"version": "11.0.2",
"main": "cryptoforknote-util",
"author": {
"name": "LucasJones",