From 28e4c7a24a356f392e0b6e6adc343940cfdb8c89 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Sat, 31 Oct 2020 05:52:24 +0000 Subject: [PATCH] Draft implementation of Ravencoin utils --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e99eaab..463db79 100644 --- a/index.js +++ b/index.js @@ -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') ]);