It's a c++: use string.clear()
[novacoin.git] / src / init.cpp
index a636b6e..1e0daaa 100644 (file)
@@ -376,7 +376,7 @@ bool AppInit2()
 
     // ********************************************************* Step 2: parameter interactions
 
-    nNodeLifespan = (unsigned int)(GetArg("-addrlifespan", 7));
+    nNodeLifespan = GetArgUInt("-addrlifespan", 7);
     fUseFastIndex = GetBoolArg("-fastindex", true);
     fUseMemoryLog = GetBoolArg("-memorylog", true);
 
@@ -1001,7 +1001,7 @@ bool AppInit2()
 
     // ********************************************************* Step 13: IP collection thread
     strCollectorCommand = GetArg("-peercollector", "");
-    if (strCollectorCommand != "")
+    if (!fTestNet && strCollectorCommand != "")
         NewThread(ThreadIPCollector, NULL);
     // ********************************************************* Step 14: finished