mirror of
https://github.com/monero-project/monero.git
synced 2025-08-19 19:28:38 -04:00
Merge pull request #3130
5ae617d5simplewallet: single out 0 amount destinations as dummy ones (moneromooo-monero)c1d19f3cwallet2: fix sweep_all sending an atomic unit (moneromooo-monero)
This commit is contained in:
commit
09d19c9139
2 changed files with 16 additions and 4 deletions
|
|
@ -4677,12 +4677,24 @@ bool simple_wallet::accept_loaded_tx(const std::function<size_t()> get_num_txes,
|
|||
payment_id_string = "no payment ID";
|
||||
|
||||
std::string dest_string;
|
||||
size_t n_dummy_outputs = 0;
|
||||
for (auto i = dests.begin(); i != dests.end(); )
|
||||
{
|
||||
dest_string += (boost::format(tr("sending %s to %s")) % print_money(i->second.second) % i->second.first).str();
|
||||
if (i->second.second > 0)
|
||||
{
|
||||
if (!dest_string.empty())
|
||||
dest_string += ", ";
|
||||
dest_string += (boost::format(tr("sending %s to %s")) % print_money(i->second.second) % i->second.first).str();
|
||||
}
|
||||
else
|
||||
++n_dummy_outputs;
|
||||
++i;
|
||||
if (i != dests.end())
|
||||
}
|
||||
if (n_dummy_outputs > 0)
|
||||
{
|
||||
if (!dest_string.empty())
|
||||
dest_string += ", ";
|
||||
dest_string += std::to_string(n_dummy_outputs) + tr(" dummy output(s)");
|
||||
}
|
||||
if (dest_string.empty())
|
||||
dest_string = tr("with no destinations");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue