1
0
Fork 0
forked from lthn/blockchain

wallets_manager::get_alias_coast() was ALSO fixed to provide exact alias cost, which is necessary for post-HF4

This commit is contained in:
sowle 2023-08-07 01:11:23 +02:00
parent a0b09a6b78
commit d0811e6a22
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -1394,9 +1394,8 @@ std::string wallets_manager::get_alias_coast(const std::string& a, uint64_t& coa
if (!m_rpc_proxy->call_COMMAND_RPC_GET_ALIAS_REWARD(req, rsp))
return API_RETURN_CODE_BAD_ARG;
coast = rsp.reward + rsp.reward/10; //add 10% of price to be sure
coast = rsp.reward;
return rsp.status;
}
std::string wallets_manager::request_alias_registration(const currency::alias_rpc_details& al, uint64_t wallet_id, uint64_t fee, currency::transaction& res_tx, uint64_t reward)