Skip to content

Commit 1947519

Browse files
committed
[Cleanup] Remove unneeded "fix" for segfault with getinfo on startup
1 parent 84acfa1 commit 1947519

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/rpc/misc.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,6 @@ UniValue getinfo(const JSONRPCRequest& request)
138138
obj.pushKV("difficulty", (double)GetDifficulty());
139139
obj.pushKV("testnet", Params().NetworkID() == CBaseChainParams::TESTNET);
140140

141-
// During inital block verification chainActive.Tip() might be not yet initialized
142-
if (chainActive.Tip() == NULL) {
143-
obj.pushKV("status", "Blockchain information not yet available");
144-
return obj;
145-
}
146-
147141
FlushStateToDisk();
148142
obj.pushKV("moneysupply",ValueFromAmount(pcoinsTip->GetTotalAmount()));
149143
UniValue zpivObj(UniValue::VOBJ);

0 commit comments

Comments
 (0)