Draft implementation of Ravencoin utils
This commit is contained in:
2
index.js
2
index.js
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user