Fixed raven block processing

This commit is contained in:
MoneroOcean
2020-12-09 04:19:15 +00:00
parent 1647e8ccd6
commit 16acb844d7

View File

@@ -43,7 +43,7 @@ function hash256(buffer) {
function getMerkleRoot(transactions) {
if (transactions.length === 0) return null;
if (transactions.length === 1) return transactions[0];
if (transactions.length === 1) return transactions[0].getHash();
let hashes = [ reverseBuffer(transactions[0]).toString('hex') ];
transactions.split(1).forEach(function (value) {
hashes.push(value.hash);