Draft implementation of Ravencoin utils

This commit is contained in:
MoneroOcean
2020-10-31 05:52:24 +00:00
parent 9e7b4fdd70
commit 28e4c7a24a

View File

@@ -105,7 +105,7 @@ module.exports.RavenBlockTemplate = function(rpcData, poolAddress) {
header, // 80 bytes
new Buffer('EEEEEEEEEEEEEEEE', 'hex'), // 8 bytes
new Buffer('EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE', 'hex'), // 32 bytes
varuint.encode(rpcData.transactions.length + 1, new Buffer(), 0)
varuint.encode(rpcData.transactions.length + 1, new Buffer(varuint.encodingLength(rpcData.transactions.length + 1)), 0)
]);
const offset1 = blob.length;
blob = new Buffer.concat([ blob, new Buffer(txCoinbase.toHex(), 'hex') ]);