From 1548ab662a576040b17ebc46caaf6e9f2453ceee Mon Sep 17 00:00:00 2001 From: sowle Date: Tue, 19 Mar 2024 01:40:45 +0100 Subject: [PATCH] wallet2::get_current_tx_version() fixed --- src/wallet/wallet2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 67b48f2c..575a082f 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1080,7 +1080,8 @@ void wallet2::accept_proposal(const crypto::hash& contract_id, uint64_t b_accept //--------------------------------------------------------------------------------- uint64_t wallet2::get_current_tx_version() { - return currency::get_tx_version(this->get_top_block_height(), this->m_core_runtime_config.hard_forks); + uint64_t tx_expected_block_height = get_top_block_height() + 1; + return currency::get_tx_version(tx_expected_block_height, this->m_core_runtime_config.hard_forks); } //--------------------------------------------------------------------------------- void wallet2::finish_contract(const crypto::hash& contract_id, const std::string& release_type, currency::transaction* p_release_tx /* = nullptr */)