diff --git a/index.js b/index.js index d75f102..8f3212c 100644 --- a/index.js +++ b/index.js @@ -130,14 +130,14 @@ module.exports.RavenBlockTemplate = function(rpcData, poolAddress) { header.writeUInt32BE(rpcData.version, position += 32, 4); // version 121-153 header = reverseBuffer(header); } - + let blob = Buffer.concat([ header, // 80 bytes Buffer.from('AAAAAAAAAAAAAAAA', 'hex'), // 8 bytes Buffer.from('BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', 'hex'), // 32 bytes varuint.encode(rpcData.transactions.length + 1, Buffer.alloc(varuint.encodingLength(rpcData.transactions.length + 1)), 0) ]); - const offset1 = blob.length; + const offset1 = blob.length; blob = Buffer.concat([ blob, Buffer.from(txCoinbase.toHex(), 'hex') ]); rpcData.transactions.forEach(function (value) { diff --git a/package.json b/package.json index ccfc498..c8b4c77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "15.8.0", + "version": "15.8.1", "author": { "name": "LucasJones", "email": "lucasjonesdev@hotmail.co.uk" diff --git a/src/cryptonote_basic/cryptonote_basic.h b/src/cryptonote_basic/cryptonote_basic.h index 0e676d4..4411e4a 100644 --- a/src/cryptonote_basic/cryptonote_basic.h +++ b/src/cryptonote_basic/cryptonote_basic.h @@ -409,7 +409,7 @@ namespace cryptonote struct tx_out_salvium { uint64_t amount; - txout_salvium_target_v target; + txout_carrot_target_v target; BEGIN_SERIALIZE_OBJECT() VARINT_FIELD(amount) diff --git a/tests/sal.js b/tests/sal.js index ba0e396..66b3cb3 100644 --- a/tests/sal.js +++ b/tests/sal.js @@ -12,4 +12,4 @@ if (h1 === '0202fdaca8b906b1670506d0dc45b11cbc87f9ceedfd0cbfa56c14da72ccc27c4510 } else { console.log('FAILED: ' + h1); process.exit(1); -} \ No newline at end of file +}