Fixed raven block prev hash calc
This commit is contained in:
2
index.js
2
index.js
@@ -158,7 +158,7 @@ function update_merkle_root_hash(blob_in, blob_out) {
|
||||
offset += tx.byteLength();
|
||||
}
|
||||
const rpcData = { transactions: transactions.slice(1) };
|
||||
reverseBuffer(getMerkleRoot(rpcData, transactions[0].getHash().toString('hex'))).copy(blob_out, 4 + 32);
|
||||
reverseBuffer(new Buffer(getMerkleRoot(rpcData, transactions[0].getHash().toString('hex')), 'hex')).copy(blob_out, 4 + 32);
|
||||
};
|
||||
|
||||
module.exports.convertRavenBlob = function(blobBuffer) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cryptoforknote-util",
|
||||
"version": "9.0.7",
|
||||
"version": "9.0.8",
|
||||
"main": "cryptoforknote-util",
|
||||
"author": {
|
||||
"name": "LucasJones",
|
||||
|
||||
Reference in New Issue
Block a user