wallet: fixed pos entry selection (limited to native coins)

This commit is contained in:
sowle 2023-03-10 13:46:33 +01:00
parent c817d3ccb6
commit 1df413019f
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -3742,8 +3742,14 @@ bool wallet2::get_transfer_address(const std::string& adr_str, currency::account
//----------------------------------------------------------------------------------------------------
bool wallet2::is_transfer_okay_for_pos(const transfer_details& tr, bool is_zarcanum_hf, uint64_t& stake_unlock_time) const
{
if (is_zarcanum_hf && !tr.is_zc())
return false;
if (is_zarcanum_hf)
{
if (!tr.is_zc())
return false;
if (!tr.is_native_coin())
return false;
}
if (!tr.is_spendable())
return false;