diff --git a/index.js b/index.js index 314bd45..d75f102 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,7 @@ function getMerkleRoot(transactions, transaction_hash_func, detectWitness) { const forWitness = detectWitness ? txesHaveWitnessCommit(transactions) : false; const hashes = transactions.map(transaction => transaction_hash_func(transaction, forWitness)); const rootHash = fastMerkleRoot(hashes, hash256); - return forWitness ? hash256_3(Buffer.concat([rootHash, transactions[0].ins[0].witness[0]])) : rootHash; + return forWitness ? hash256(Buffer.concat([rootHash, transactions[0].ins[0].witness[0]])) : rootHash; } let last_epoch_number; diff --git a/package.json b/package.json index aae29f8..26c3e6f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "15.3.19", + "version": "15.3.20", "author": { "name": "LucasJones", "email": "lucasjonesdev@hotmail.co.uk"