forked from lthn/blockchain
in get_tx_version() params named more obviously to avoid mistakes
This commit is contained in:
parent
89fa48880e
commit
4f02abac02
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue