1
0
Fork 0
forked from lthn/blockchain

wallet2::get_current_tx_version() fixed

This commit is contained in:
sowle 2024-03-19 01:40:45 +01:00
parent 0455e81b4c
commit 1548ab662a
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -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 */)