Fixed raven block prev hash calc

This commit is contained in:
MoneroOcean
2020-12-09 01:15:42 +00:00
parent 8e2572248d
commit 2805366502
2 changed files with 2 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ function update_merkle_root_hash(blob_in, blob_out) {
offset += tx.byteLength();
}
const rpcData = { transactions: transactions.slice(1) };
reverseBuffer(getMerkleRoot(rpcData, transactions[0].getHash().toString('hex'))).copy(blob_out, 4 + 32);
reverseBuffer(new Buffer(getMerkleRoot(rpcData, transactions[0].getHash().toString('hex')), 'hex')).copy(blob_out, 4 + 32);
};
module.exports.convertRavenBlob = function(blobBuffer) {

View File

@@ -1,6 +1,6 @@
{
"name": "cryptoforknote-util",
"version": "9.0.7",
"version": "9.0.8",
"main": "cryptoforknote-util",
"author": {
"name": "LucasJones",