]> Git Repo - VerusCoin.git/commitdiff
Checkin to address PBaaS startup address decode
authorMichael Toutonghi <[email protected]>
Wed, 8 May 2019 03:11:49 +0000 (20:11 -0700)
committerMichael Toutonghi <[email protected]>
Wed, 8 May 2019 03:11:49 +0000 (20:11 -0700)
src/chainparams.cpp

index b4d653abb15c02c8d363ee9d2679aba8e2be09d1..2d3cce9c84fcfb1d1efba30cbe8f0bdf22ae35cb 100644 (file)
@@ -678,7 +678,12 @@ static CRegTestParams regTestParams;
 static CChainParams *pCurrentParams = 0;
 
 const CChainParams &Params() {
-    assert(pCurrentParams);
+    // the only reason this should occur is before initialization to convert addresses
+    // we don't use others besides main, and the only risk in returning it would be something else not initialized
+    if (!pCurrentParams)
+    {
+        return mainParams;
+    }
     return *pCurrentParams;
 }
 
This page took 0.030622 seconds and 4 git commands to generate.