This commit is contained in:
jl777
2018-08-21 07:39:35 -11:00
parent dcf05e8490
commit 6cdb334320
2 changed files with 17 additions and 15 deletions

View File

@@ -5323,21 +5323,6 @@ bool InitBlockIndex() {
// Check whether we're already initialized
if (chainActive.Genesis() != NULL)
{
bool checkval;
fAddressIndex = GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX);
pblocktree->ReadFlag("addressindex", checkval);
if ( checkval != fAddressIndex )
{
pblocktree->WriteFlag("addressindex", fAddressIndex);
fprintf(stderr,"set addressindex\n");
}
fSpentIndex = GetBoolArg("-spentindex", DEFAULT_SPENTINDEX);
pblocktree->ReadFlag("spentindex", checkval);
if ( checkval != fSpentIndex )
{
pblocktree->WriteFlag("spentindex", fSpentIndex);
fprintf(stderr,"set spentindex\n");
}
return true;
}
// Use the provided setting for -txindex in the new database