From b1dc2b795dc4d8ab3b65c90583dfa8e2fa0bd796 Mon Sep 17 00:00:00 2001 From: auruya Date: Tue, 10 Mar 2026 13:22:21 +0300 Subject: [PATCH] add check_tx_type_and_version check to block verification --- src/cryptonote_core/blockchain.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index ef22fdffb..214cf8737 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -5583,6 +5583,18 @@ leave: } } #endif + + + // Check the TX type + tx_verification_context tvc; + if (!check_tx_type_and_version(tx, tvc)) { + MERROR("Block with id: " << id << " failed to pass transaction type and version check for transaction id: " << tx_id); + bvc.m_verifivation_failed = true; + return_tx_to_pool(txs); + goto leave; + } + + TIME_MEASURE_FINISH(cc); t_checktx += cc; fee_summary += fee;