mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-06 20:38:53 +00:00
Merge pull request #163 from fuwa0529/no-confirm-when-churn
simplewallet: suppress warning when sweep_all to the primary address of the owner
This commit is contained in:
commit
df637cd08c
@ -5987,8 +5987,10 @@ bool simple_wallet::sweep_main(uint64_t below, bool locked, const std::vector<st
|
||||
payment_id_seen = true;
|
||||
}
|
||||
|
||||
const bool is_wallet_address = m_wallet->get_address() == info.address;
|
||||
|
||||
// prompt is there is no payment id and confirmation is required
|
||||
if (!payment_id_seen && m_wallet->confirm_missing_payment_id() && !info.is_subaddress)
|
||||
if (!payment_id_seen && m_wallet->confirm_missing_payment_id() && !info.is_subaddress && !is_wallet_address)
|
||||
{
|
||||
std::string accepted = input_line(tr("There is no easy way for exchanges and large merchants to identify that this transaction came from you. Request a subaddress in these cases. Continue anyway?"), true);
|
||||
if (std::cin.eof())
|
||||
|
Loading…
Reference in New Issue
Block a user