Fixed SAL after fork

This commit is contained in:
MoneroOcean
2025-10-13 20:09:05 -07:00
parent 8bbcc07dd2
commit 9128ef79b9
4 changed files with 5 additions and 5 deletions

View File

@@ -130,14 +130,14 @@ module.exports.RavenBlockTemplate = function(rpcData, poolAddress) {
header.writeUInt32BE(rpcData.version, position += 32, 4); // version 121-153 header.writeUInt32BE(rpcData.version, position += 32, 4); // version 121-153
header = reverseBuffer(header); header = reverseBuffer(header);
} }
let blob = Buffer.concat([ let blob = Buffer.concat([
header, // 80 bytes header, // 80 bytes
Buffer.from('AAAAAAAAAAAAAAAA', 'hex'), // 8 bytes Buffer.from('AAAAAAAAAAAAAAAA', 'hex'), // 8 bytes
Buffer.from('BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', 'hex'), // 32 bytes Buffer.from('BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB', 'hex'), // 32 bytes
varuint.encode(rpcData.transactions.length + 1, Buffer.alloc(varuint.encodingLength(rpcData.transactions.length + 1)), 0) 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') ]); blob = Buffer.concat([ blob, Buffer.from(txCoinbase.toHex(), 'hex') ]);
rpcData.transactions.forEach(function (value) { rpcData.transactions.forEach(function (value) {

View File

@@ -1,6 +1,6 @@
{ {
"name": "cryptoforknote-util", "name": "cryptoforknote-util",
"version": "15.8.0", "version": "15.8.1",
"author": { "author": {
"name": "LucasJones", "name": "LucasJones",
"email": "lucasjonesdev@hotmail.co.uk" "email": "lucasjonesdev@hotmail.co.uk"

View File

@@ -409,7 +409,7 @@ namespace cryptonote
struct tx_out_salvium struct tx_out_salvium
{ {
uint64_t amount; uint64_t amount;
txout_salvium_target_v target; txout_carrot_target_v target;
BEGIN_SERIALIZE_OBJECT() BEGIN_SERIALIZE_OBJECT()
VARINT_FIELD(amount) VARINT_FIELD(amount)

View File

@@ -12,4 +12,4 @@ if (h1 === '0202fdaca8b906b1670506d0dc45b11cbc87f9ceedfd0cbfa56c14da72ccc27c4510
} else { } else {
console.log('FAILED: ' + h1); console.log('FAILED: ' + h1);
process.exit(1); process.exit(1);
} }