1
0
Fork 0
forked from lthn/blockchain

removed redundant hardfork check from check_tx_inputs(), because it's already in validate_tx_for_hardfork_specific_terms()

This commit is contained in:
sowle 2024-05-04 03:15:13 +02:00
parent e38dfc1472
commit 81ac6cf333
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

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