From 81ac6cf333a49bb12c2ade4f3a7af1db1e7c13c1 Mon Sep 17 00:00:00 2001 From: sowle Date: Sat, 4 May 2024 03:15:13 +0200 Subject: [PATCH] removed redundant hardfork check from check_tx_inputs(), because it's already in validate_tx_for_hardfork_specific_terms() --- src/currency_core/blockchain_storage.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 9fe5c021..b2c60cf2 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -4908,12 +4908,6 @@ bool blockchain_storage::check_tx_inputs(const transaction& tx, const crypto::ha } VARIANT_CASE_CONST(txin_htlc, in_htlc) { - if (!is_hardfork_active(3)) // @#@ CZ, consider removing this to validate_tx_for_hardfork_specific_terms - { - LOG_ERROR("Error: Transaction with txin_htlc before hardfork 3 (before height " << m_core_runtime_config.hard_forks.get_str_height_the_hardfork_active_after(3) << ")"); - return false; - } - CHECK_AND_ASSERT_MES(in_htlc.key_offsets.size(), false, "Empty in_to_key.key_offsets for input #" << sig_index << " tx: " << tx_prefix_hash); if (!local_check_key_image(in_htlc.k_image)) return false;