message: [RPC] Segfault pivx-cli getinfo while loading block index
diff: @@ -112,6 +112,13 @@ UniValue getinfo(const UniValue& params, bool fHelp)
  obj.push_back(Pair("proxy", (proxy.IsValid() ? proxy.proxy.ToStringIPPort() : string())));
  obj.push_back(Pair("difficulty", (double)GetDifficulty()));
  obj.push_back(Pair("testnet", Params().TestnetToBeDeprecatedFieldRPC()));
  +
  + // During inital block verification chainActive.Tip() might be not yet initialized
  + if (chainActive.Tip() == NULL) {
  + obj.push_back(Pair("status", "Blockchain information not yet available"));
  + return obj;
  + }
  +
  obj.push_back(Pair("moneysupply",ValueFromAmount(chainActive.Tip()->nMoneySupply)));
  UniValue zpivObj(UniValue::VOBJ);
  for (auto denom : libzerocoin::zerocoinDenomList) {
  