From 1df413019fef112e8b02b6cc15ade0fa623484e4 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 10 Mar 2023 13:46:33 +0100 Subject: [PATCH] wallet: fixed pos entry selection (limited to native coins) --- src/wallet/wallet2.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 1b3528af..7779a326 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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;