From 26f2f7511a85d74e2e24e4e1dc9af88c6c1930d3 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Fri, 25 Oct 2024 13:43:50 +0400 Subject: [PATCH] added salt to asset generation --- src/wallet/wallet2.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 80de888f..4e6a93ec 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -5548,6 +5548,10 @@ void wallet2::deploy_new_asset(const currency::asset_descriptor_base& asset_info asset_reg_info.opt_descriptor = asset_info; fill_adb_version_based_onhardfork(*asset_reg_info.opt_descriptor); asset_reg_info.operation_type = ASSET_DESCRIPTOR_OPERATION_REGISTER; + if (is_in_hardfork_zone(ZANO_HARDFORK_05)) + { + asset_reg_info.opt_asset_id_salt = crypto::rand(); + } construct_tx_param ctp = get_default_construct_tx_param(); ctp.dsts = destinations; ctp.extra.push_back(asset_reg_info);