From 84b702fa3fc677b7a3904862bbb37604eb4ba79c Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Tue, 9 Aug 2022 00:03:02 +0200 Subject: [PATCH] removed validation from add_transaction_input_visitor, due to code is duplicated in validate_tx_for_hardfork_specific_terms --- src/currency_core/blockchain_storage.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index f0f318cb..6946bca2 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -3926,11 +3926,6 @@ namespace currency } bool operator()(const txin_htlc& in) const { - if (!m_bcs.is_hardfork_active(3)) // @#@ CZ, should we move this check to validate_tx_for_hardfork_specific_terms()? - { - LOG_ERROR("Error: Transaction with txin_htlc before hardfork 3 (before height " << m_bcs.get_core_runtime_config().hard_forks.get_str_height_the_hardfork_active_after(3) << ")"); - return false; - } return this->operator()(static_cast(in)); } bool operator()(const txin_gen& in) const { return true; }