wallet: fixed pos entry selection (limited to native coins)
This commit is contained in:
parent
c817d3ccb6
commit
1df413019f
1 changed files with 8 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue