]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Fix stagnet/testnet mode
authortobtoht <thotbot@protonmail.com>
Fri, 2 Jul 2021 22:04:15 +0000 (00:04 +0200)
committertobtoht <thotbot@protonmail.com>
Fri, 2 Jul 2021 22:04:15 +0000 (00:04 +0200)
src/constants.cpp [new file with mode: 0644]
src/constants.h

diff --git a/src/constants.cpp b/src/constants.cpp
new file mode 100644 (file)
index 0000000..d8b0c1c
--- /dev/null
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// Copyright (c) 2020-2021, The Monero Project.
+
+#include "constants.h"
+
+namespace constants {
+    NetworkType::Type networkType = NetworkType::Type::MAINNET;
+};
index 76c79e1a0c2b02361d2a4cff8ef6e1b84dacf133..d9e9963236e978f455ef33e4115878f11eac3eff 100644 (file)
@@ -11,8 +11,7 @@
 
 namespace constants
 {
-    // application constants
-    static NetworkType::Type networkType; // TODO: compiler moans, also not really a const
+    extern NetworkType::Type networkType; // TODO: not really a const
 
     // coin constants
     const std::string coinName = "monero";