From 16acb844d7fadc9648d9c09dd28b3a4dd64ead76 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Wed, 9 Dec 2020 04:19:15 +0000 Subject: [PATCH] Fixed raven block processing --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 27c5442..3ca0a91 100644 --- a/index.js +++ b/index.js @@ -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);