From 39fa08d769313132b6f3402aadf182249301bcbd Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Wed, 15 Oct 2025 09:46:04 -0700 Subject: [PATCH] SAL fixes --- package.json | 2 +- src/cryptonote_basic/cryptonote_basic.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c8b4c77..6edf6ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoforknote-util", - "version": "15.8.1", + "version": "15.8.2", "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 4411e4a..f6dad04 100644 --- a/src/cryptonote_basic/cryptonote_basic.h +++ b/src/cryptonote_basic/cryptonote_basic.h @@ -761,7 +761,7 @@ namespace cryptonote } else if (blob_type == BLOB_TYPE_CRYPTONOTE_SALVIUM) { VARINT_FIELD(version) - //if(version == 0 || CURRENT_TRANSACTION_VERSION < version) return false; + if(version == 0 || CURRENT_TRANSACTION_VERSION < 4) return false; VARINT_FIELD(unlock_time) FIELD(vin_salvium) FIELD(vout_salvium) @@ -770,11 +770,11 @@ namespace cryptonote if (sal_tx_type != cryptonote::salvium_transaction_type::UNSET && sal_tx_type != cryptonote::salvium_transaction_type::PROTOCOL) { VARINT_FIELD(amount_burnt) if (sal_tx_type != cryptonote::salvium_transaction_type::MINER) { - if (type == cryptonote::salvium_transaction_type::TRANSFER && version >= TRANSACTION_VERSION_N_OUTS) { + if (sal_tx_type == cryptonote::salvium_transaction_type::TRANSFER && version >= TRANSACTION_VERSION_N_OUTS) { FIELD(return_address_list) FIELD(return_address_change_mask) } else { - if (type == cryptonote::salvium_transaction_type::STAKE && + if (sal_tx_type == cryptonote::salvium_transaction_type::STAKE && version >= TRANSACTION_VERSION_CARROT) { FIELD(protocol_tx_data)