add check_tx_type_and_version check to block verification

This commit is contained in:
auruya
2026-03-10 13:22:21 +03:00
parent 3b1a939417
commit b1dc2b795d

View File

@@ -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;