]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
send: set pay to many output limit to 15
authortobtoht <tob@featherwallet.org>
Fri, 3 May 2024 19:32:26 +0000 (21:32 +0200)
committertobtoht <tob@featherwallet.org>
Fri, 3 May 2024 19:32:26 +0000 (21:32 +0200)
external/feather-docs
src/MainWindow.cpp
src/SendWidget.cpp

index a02c5ffededb0e021183b965aa8eb1e20f11e6d4..9abafde37423c204401a2322d152e8b3cc5d267a 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a02c5ffededb0e021183b965aa8eb1e20f11e6d4
+Subproject commit 9abafde37423c204401a2322d152e8b3cc5d267a
index 7000fb5d5de4f7437221262623a288a62cd2624b..9c8814dd2bf2a8c4f2afa5475b1c5442ad25a16e 100644 (file)
@@ -823,7 +823,9 @@ void MainWindow::onTransactionCreated(PendingTransaction *tx, const QVector<QStr
                 message.doc = "balance";
             }
             catch (const tools::error::tx_not_possible &e) {
-                message.description = QString("Not enough money to transfer. Transaction amount + fee exceeds available balance.");
+                message.description = QString("Not enough money to transfer. Transaction amount + fee exceeds available balance.\n\n"
+                                              "Spendable balance: %1\n"
+                                              "Transaction needs: %2").arg(WalletManager::displayAmount(e.available()), WalletManager::displayAmount(e.tx_amount() + e.fee()));
                 message.helpItems = {"If you're trying to send your entire balance, click 'Max'."};
                 message.doc = "balance";
             }
index 6e4c687519c8646ca4e099c3f353c5a5d10362bb..36a7d7557638d484d739822def0e993813636dda 100644 (file)
@@ -183,8 +183,8 @@ void SendWidget::sendClicked() {
     QString description = ui->lineDescription->text();
 
     if (!outputs.empty()) { // multi destination transaction
-        if (outputs.size() > 16) {
-            Utils::showError(this, "Unable to create transaction", "Maximum number of outputs (16) exceeded.", {}, "pay_to_many");
+        if (outputs.size() > 15) {
+            Utils::showError(this, "Unable to create transaction", "Maximum number of outputs (15) exceeded.", {}, "pay_to_many");
             return;
         }