mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
send: set pay to many output limit to 15
This commit is contained in:
Vendored
+1
-1
Submodule external/feather-docs updated: a02c5ffede...9abafde374
+3
-1
@@ -823,7 +823,9 @@ void MainWindow::onTransactionCreated(PendingTransaction *tx, const QVector<QStr
|
|||||||
message.doc = "balance";
|
message.doc = "balance";
|
||||||
}
|
}
|
||||||
catch (const tools::error::tx_not_possible &e) {
|
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.helpItems = {"If you're trying to send your entire balance, click 'Max'."};
|
||||||
message.doc = "balance";
|
message.doc = "balance";
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -183,8 +183,8 @@ void SendWidget::sendClicked() {
|
|||||||
QString description = ui->lineDescription->text();
|
QString description = ui->lineDescription->text();
|
||||||
|
|
||||||
if (!outputs.empty()) { // multi destination transaction
|
if (!outputs.empty()) { // multi destination transaction
|
||||||
if (outputs.size() > 16) {
|
if (outputs.size() > 15) {
|
||||||
Utils::showError(this, "Unable to create transaction", "Maximum number of outputs (16) exceeded.", {}, "pay_to_many");
|
Utils::showError(this, "Unable to create transaction", "Maximum number of outputs (15) exceeded.", {}, "pay_to_many");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user