remove failing assert when db is empty

This commit is contained in:
Miguel Freitas 2013-11-05 00:26:20 -02:00
parent f81088be70
commit 247ae657ef

View File

@ -2058,10 +2058,10 @@ bool static LoadBlockIndexDB()
fReindex |= fReindexing; fReindex |= fReindexing;
// Check whether we have a transaction index // Check whether we have a transaction index
bool readTxIndex; //bool readTxIndex;
pblocktree->ReadFlag("txindex", readTxIndex); //pblocktree->ReadFlag("txindex", readTxIndex);
printf("LoadBlockIndexDB(): transaction index %s\n", readTxIndex ? "enabled" : "disabled"); //printf("LoadBlockIndexDB(): transaction index %s\n", readTxIndex ? "enabled" : "disabled");
assert( readTxIndex ); // always true in twister //assert( readTxIndex ); // always true in twister
// Load hashBestChain pointer to end of best chain // Load hashBestChain pointer to end of best chain
pindexBest = pcoinsTip->GetBestBlock(); pindexBest = pcoinsTip->GetBestBlock();