aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-05-11 17:40:21 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-07-09 13:07:37 +0200
commitfaf8401c195f52470d1ca6e2c94cb3820e57ee41 (patch)
tree910f9d852aa3d2b8ea6dc5434f791b93096ed036 /src/qt
parentfa6c186436337c8ed7d9e1ab065377f8cda5c0b7 (diff)
downloadbitcoin-faf8401c195f52470d1ca6e2c94cb3820e57ee41.tar.xz
wallet: Pass unused args to StartWallets
This refactor does not change behavior
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/test/test_main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp
index aefdcd2716..12efca2503 100644
--- a/src/qt/test/test_main.cpp
+++ b/src/qt/test/test_main.cpp
@@ -40,7 +40,7 @@ Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
const std::function<void(const std::string&)> G_TEST_LOG_FUN{};
// This is all you need to run all the tests
-int main(int argc, char *argv[])
+int main(int argc, char* argv[])
{
// Initialize persistent globals with the testing setup state for sanity.
// E.g. -datadir in gArgs is set to a temp directory dummy value (instead
@@ -70,6 +70,8 @@ int main(int argc, char *argv[])
BitcoinApplication app(*node);
app.setApplicationName("Bitcoin-Qt-test");
+ node->setupServerArgs(); // Make gArgs available in the NodeContext
+ node->context()->args->ClearArgs(); // Clear added args again
AppTests app_tests(app);
if (QTest::qExec(&app_tests) != 0) {
fInvalid = true;