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:
parent
e38dfc1472
commit
81ac6cf333
1 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue