wallet: suggest the use of sweep_unmixable when not_enough_outs_to_mix is thrown

This commit is contained in:
stoffu 2018-01-31 10:37:54 +09:00
parent ed67e5c001
commit 214d251c48
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012
3 changed files with 3 additions and 1 deletions

View file

@ -1198,6 +1198,7 @@ PendingTransaction *WalletImpl::createTransaction(const string &dst_addr, const
for (const std::pair<uint64_t, uint64_t> outs_for_amount : e.scanty_outs()) {
writer << "\n" << tr("output amount") << " = " << print_money(outs_for_amount.first) << ", " << tr("found outputs to use") << " = " << outs_for_amount.second;
}
writer << "\n" << tr("Please sweep unmixable outputs.");
m_errorString = writer.str();
m_status = Status_Error;
} catch (const tools::error::tx_not_constructed&) {