From e76dcdd8109c288c346e45a396839c94633b03cb Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 15 Oct 2016 14:30:50 +0100 Subject: wallet: improve error messages when not enough money for transfer --- src/wallet/wallet2.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/wallet/wallet2.cpp') diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 98dbc4fd6..f589b0821 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3457,6 +3457,12 @@ std::vector wallet2::create_transactions_2(std::vector unlocked_balance(), error::not_enough_money, + unlocked_balance(), needed_money, 0); + if (unused_dust_indices.empty() && unused_transfers_indices.empty()) return std::vector(); @@ -3497,7 +3503,7 @@ std::vector wallet2::create_transactions_2(std::vector wallet2::create_transactions_2(std::vector