Compare commits

...

1 Commits

Author SHA1 Message Date
MoneroOcean df11d9c2bf Fixed raven block processing 2020-12-09 04:21:22 +00:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ function hash256(buffer) {
function getMerkleRoot(transactions) { function getMerkleRoot(transactions) {
if (transactions.length === 0) return null; if (transactions.length === 0) return null;
if (transactions.length === 1) return transactions[0].getHash(); if (transactions.length === 1) return transactions[0].getHash();
let hashes = [ reverseBuffer(transactions[0]).toString('hex') ]; let hashes = [ reverseBuffer(transactions[0].getHash()).toString('hex') ];
transactions.split(1).forEach(function (value) { transactions.split(1).forEach(function (value) {
hashes.push(value.hash); hashes.push(value.hash);
}); });
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "cryptoforknote-util", "name": "cryptoforknote-util",
"version": "9.0.14", "version": "9.0.15",
"main": "cryptoforknote-util", "main": "cryptoforknote-util",
"author": { "author": {
"name": "LucasJones", "name": "LucasJones",