aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-01-07 22:00:23 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-01-08 00:14:56 +0200
commitb0bfbe50282877a1eee87118902901a280d6656d (patch)
tree9ebae3bb2ab5e2f32d35bc9cfd663a6d01471684
parent68c9bbe9bc91f882404556998666b1b5acea60e4 (diff)
downloadbitcoin-b0bfbe50282877a1eee87118902901a280d6656d.tar.xz
refactor: Drop `bool force' parameter
-rw-r--r--src/qt/bitcoin.cpp6
-rw-r--r--src/qt/bitcoin.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 9bee009017..e73740651d 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -281,11 +281,11 @@ void BitcoinApplication::parameterSetup()
m_node.initParameterInteraction();
}
-void BitcoinApplication::SetPrune(bool prune, bool force)
+void BitcoinApplication::SetPrune(bool prune)
{
// If prune is set, intentionally override existing prune size with
// the default size since this is called when choosing a new datadir.
- optionsModel->SetPruneTargetGB(prune ? DEFAULT_PRUNE_TARGET_GB : 0, force);
+ optionsModel->SetPruneTargetGB(prune ? DEFAULT_PRUNE_TARGET_GB : 0, true);
}
void BitcoinApplication::requestInitialize()
@@ -564,7 +564,7 @@ int GuiMain(int argc, char* argv[])
if (did_show_intro) {
// Store intro dialog settings other than datadir (network specific)
- app.SetPrune(prune, true);
+ app.SetPrune(prune);
}
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && !gArgs.GetBoolArg("-min", false))
diff --git a/src/qt/bitcoin.h b/src/qt/bitcoin.h
index 8c77fd8a7d..599481fb71 100644
--- a/src/qt/bitcoin.h
+++ b/src/qt/bitcoin.h
@@ -68,7 +68,7 @@ public:
/// Create options model
void createOptionsModel(bool resetSettings);
/// Update prune value
- void SetPrune(bool prune, bool force = false);
+ void SetPrune(bool prune);
/// Create main window
void createWindow(const NetworkStyle *networkStyle);
/// Create splash screen