From a40e247252820cdf3a67c5d3c09e9655ee8dccdf Mon Sep 17 00:00:00 2001 From: Capri Date: Fri, 7 Aug 2026 21:00:41 +0000 Subject: [PATCH] Improve automatic transaction fee handling --- src/qt/sendcoinsdialog.cpp | 11 ++++------- src/wallet/wallet.h | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 3a72ac3..a9142a4 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -845,13 +845,10 @@ void SendCoinsDialog::updateSmartFeeLabel() ui->labelSmartFee->setText(DigiByteUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), feeRate.GetFeePerK()) + "/kvB"); if (reason == FeeReason::FALLBACK) { - ui->labelSmartFee2->show(); // (Smart fee not initialized yet. This usually takes a few blocks...) - ui->labelFeeEstimation->setText(""); - ui->fallbackFeeWarningLabel->setVisible(true); - int lightness = ui->fallbackFeeWarningLabel->palette().color(QPalette::WindowText).lightness(); - QColor warning_colour(255 - (lightness / 5), 176 - (lightness / 3), 48 - (lightness / 14)); - ui->fallbackFeeWarningLabel->setStyleSheet("QLabel { color: " + warning_colour.name() + "; }"); - ui->fallbackFeeWarningLabel->setIndent(GUIUtil::TextWidth(QFontMetrics(ui->fallbackFeeWarningLabel->font()), "x")); + ui->labelSmartFee2->show(); + ui->labelSmartFee2->setText(tr("(Using Vexta recommended fallback fee)")); + ui->labelFeeEstimation->setText(tr("Recommended fee is being used automatically.")); + ui->fallbackFeeWarningLabel->setVisible(false); } else { diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index b9811c7..39d49b2 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -67,11 +67,11 @@ std::unique_ptr MakeWalletDatabase(const std::string& name, cons //! -paytxfee default constexpr CAmount DEFAULT_PAY_TX_FEE = 0; //! -fallbackfee default -static const CAmount DEFAULT_FALLBACK_FEE = 0; +static const CAmount DEFAULT_FALLBACK_FEE = 100000; //! -discardfee default static const CAmount DEFAULT_DISCARD_FEE = 10000; //! -mintxfee default -static const CAmount DEFAULT_TRANSACTION_MINFEE = 10000000; +static const CAmount DEFAULT_TRANSACTION_MINFEE = 100000; /** * maximum fee increase allowed to do partial spend avoidance, even for nodes with this feature disabled by default *