diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp index 597db68222..adf781c97d 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -205,7 +205,7 @@ OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet) CreateOptionUI(verticalLayout_Mempool, maxorphantx, tr("Keep at most %s unconnected transactions in memory")); maxmempool = new QSpinBox(tabMempool); - const int64_t nMempoolSizeMinMB = maxmempoolMinimumBytes(gArgs.GetIntArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT_KVB) * 1'000); + const int64_t nMempoolSizeMinMB = maxmempoolMinimumBytes(gArgs.GetIntArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT_KVB) * 1'000) / 1'000'000; maxmempool->setMinimum(nMempoolSizeMinMB); maxmempool->setMaximum(std::numeric_limits::max()); CreateOptionUI(verticalLayout_Mempool, maxmempool, tr("Keep the transaction memory pool below %s MB")); diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index e93b2b4634..1270f936d1 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -613,7 +613,7 @@ QVariant OptionsModel::getOption(OptionID option, const std::string& suffix) con case maxorphantx: return qlonglong(gArgs.GetIntArg("-maxorphantx", DEFAULT_MAX_ORPHAN_TRANSACTIONS)); case maxmempool: - return qlonglong(node().mempool().m_max_size_bytes); + return qlonglong(node().mempool().m_max_size_bytes / 1'000'000); default: return QVariant(); }