Fixed raven block prev hash calc

This commit is contained in:
MoneroOcean
2020-12-09 00:39:02 +00:00
parent 0fc0e0ac9f
commit 8e2572248d
2 changed files with 3 additions and 2 deletions

View File

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

View File

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