mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
remove failing assert when db is empty
This commit is contained in:
parent
f81088be70
commit
247ae657ef
@ -2058,10 +2058,10 @@ bool static LoadBlockIndexDB()
|
||||
fReindex |= fReindexing;
|
||||
|
||||
// Check whether we have a transaction index
|
||||
bool readTxIndex;
|
||||
pblocktree->ReadFlag("txindex", readTxIndex);
|
||||
printf("LoadBlockIndexDB(): transaction index %s\n", readTxIndex ? "enabled" : "disabled");
|
||||
assert( readTxIndex ); // always true in twister
|
||||
//bool readTxIndex;
|
||||
//pblocktree->ReadFlag("txindex", readTxIndex);
|
||||
//printf("LoadBlockIndexDB(): transaction index %s\n", readTxIndex ? "enabled" : "disabled");
|
||||
//assert( readTxIndex ); // always true in twister
|
||||
|
||||
// Load hashBestChain pointer to end of best chain
|
||||
pindexBest = pcoinsTip->GetBestBlock();
|
||||
|
Loading…
x
Reference in New Issue
Block a user