|
|
@ -94,6 +94,7 @@ using namespace std; |
|
|
|
extern void ThreadSendAlert(); |
|
|
|
extern bool komodo_dailysnapshot(int32_t height); |
|
|
|
extern int32_t KOMODO_LOADINGBLOCKS; |
|
|
|
extern void komodo_init(int32_t height); |
|
|
|
|
|
|
|
ZCJoinSplit* pzcashParams = NULL; |
|
|
|
|
|
|
@ -1628,7 +1629,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) |
|
|
|
// (we're likely using a testnet datadir, or the other way around).
|
|
|
|
if (!mapBlockIndex.empty() && mapBlockIndex.count(chainparams.GetConsensus().hashGenesisBlock) == 0) |
|
|
|
return InitError(_("Incorrect or no genesis block found. Wrong datadir for network?")); |
|
|
|
|
|
|
|
komodo_init(1); |
|
|
|
// Initialize the block index (no-op if non-empty database was already loaded)
|
|
|
|
if (!InitBlockIndex()) { |
|
|
|
strLoadError = _("Error initializing block database"); |
|
|
|