Draft implementation of Ravencoin utils

This commit is contained in:
MoneroOcean
2020-11-01 22:17:48 +00:00
parent 6abe65f623
commit 444a39c27e

View File

@@ -155,7 +155,7 @@ module.exports.convertRavenBlob = function(blobBuffer) {
offset += tx.byteLength(); offset += tx.byteLength();
} }
getMerkleRoot2(transactions).copy(header, 4 + 32); getMerkleRoot2(transactions).copy(header, 4 + 32);
return reverseBuffer(crypto.createHash('sha256').update(header_hash).digest()); return reverseBuffer(crypto.createHash('sha256').update(header).digest());
}; };
module.exports.constructNewRavenBlob = function(blockTemplate, nonceBuff, mixhashBuff) { module.exports.constructNewRavenBlob = function(blockTemplate, nonceBuff, mixhashBuff) {