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;
|
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user