Fixed raven block processing
This commit is contained in:
2
index.js
2
index.js
@@ -44,7 +44,7 @@ function hash256(buffer) {
|
||||
function getMerkleRoot(transactions) {
|
||||
if (transactions.length === 0) return null;
|
||||
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) {
|
||||
hashes.push(value.hash);
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cryptoforknote-util",
|
||||
"version": "9.0.14",
|
||||
"version": "9.0.15",
|
||||
"main": "cryptoforknote-util",
|
||||
"author": {
|
||||
"name": "LucasJones",
|
||||
|
||||
Reference in New Issue
Block a user