diff --git a/src/currency_core/currency_format_utils.cpp b/src/currency_core/currency_format_utils.cpp index 14bc69f7..ff566f7d 100644 --- a/src/currency_core/currency_format_utils.cpp +++ b/src/currency_core/currency_format_utils.cpp @@ -2110,9 +2110,9 @@ namespace currency //--------------------------------------------------------------- - uint64_t get_tx_version(uint64_t h, const hard_forks_descriptor& hfd) + uint64_t get_tx_version(uint64_t tx_expected_block_height, const hard_forks_descriptor& hfd) { - if (!hfd.is_hardfork_active_for_height(4, h)) + if (!hfd.is_hardfork_active_for_height(ZANO_HARDFORK_04_ZARCANUM, tx_expected_block_height)) { return TRANSACTION_VERSION_PRE_HF4; } diff --git a/src/currency_core/currency_format_utils.h b/src/currency_core/currency_format_utils.h index 0114b5db..a5419b20 100644 --- a/src/currency_core/currency_format_utils.h +++ b/src/currency_core/currency_format_utils.h @@ -291,7 +291,7 @@ namespace currency bool shuffle = true, uint64_t flags = 0); - uint64_t get_tx_version(uint64_t h, const hard_forks_descriptor& hfd); + uint64_t get_tx_version(uint64_t tx_expected_block_height, const hard_forks_descriptor& hfd); // returns tx version based on the height of the block where the transaction is expected to be bool construct_tx(const account_keys& sender_account_keys, const finalize_tx_param& param, finalized_tx& result); crypto::hash get_asset_id_from_descriptor(const asset_descriptor_base& adb);