aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-07-22 15:57:25 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2016-09-21 02:43:47 +0000
commit30eac2d79a05b4d7bcb708f59ff6b92c742c02f4 (patch)
tree108f776d1a18118a74bed3c9083876d26c1406d5 /src/main.cpp
parent9b0097976f4e593103cdf4594eb68de9bf9d60b3 (diff)
downloadbitcoin-30eac2d79a05b4d7bcb708f59ff6b92c742c02f4.tar.xz
Use a signal to continue init after genesis activation
Github-Pull: #8392 Rebased-From: 0fd2a33648ccde4b989f1d69529daea4d88b14a2
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 01cd410da1..3392a20752 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4339,8 +4339,6 @@ bool InitBlockIndex(const CChainParams& chainparams)
CBlockIndex *pindex = AddToBlockIndex(block);
if (!ReceivedBlockTransactions(block, state, pindex, blockPos))
return error("LoadBlockIndex(): genesis block not accepted");
- if (!ActivateBestChain(state, chainparams, &block))
- return error("LoadBlockIndex(): genesis block cannot be activated");
// Force a chainstate write so that when we VerifyDB in a moment, it doesn't check stale data
return FlushStateToDisk(state, FLUSH_STATE_ALWAYS);
} catch (const std::runtime_error& e) {