From 89180a67273666a3e29a05d1ce5e3cd2107daf8b Mon Sep 17 00:00:00 2001 From: Some Random Crypto Guy Date: Mon, 20 Jan 2025 10:52:55 +0000 Subject: [PATCH] removed ability to BURN the SAL coins post-audit --- src/cryptonote_basic/cryptonote_format_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index 7446d5d38..d76bc98b0 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -1269,8 +1269,8 @@ namespace cryptonote if (tx.type == cryptonote::transaction_type::AUDIT) { // The CHANGE for an AUDIT TX must be SAL (and 0 value, and unspendable, and to the origin wallet, and ...) CHECK_AND_ASSERT_MES(asset_type == "SAL", false, "wrong output asset type:" << asset_type); - } else if (tx.type == cryptonote::transaction_type::PROTOCOL || tx.type == cryptonote::transaction_type::BURN) { - // PROTOCOL TXs are responsible for paying out SAL and SAL1 during the AUDIT; BURN must be able to destroy all asset types and create matching CHANGE asset type + } else if (tx.type == cryptonote::transaction_type::PROTOCOL) { + // PROTOCOL TXs are responsible for paying out SAL and SAL1 during the AUDIT CHECK_AND_ASSERT_MES(asset_type == "SAL1" || asset_type == "SAL", false, "wrong output asset type:" << asset_type); } else { // All other TX types must only spend + create SAL1 (MINER, TRANSFER)