|
|
@ -4008,6 +4008,18 @@ bool InitBlockIndex() { |
|
|
|
// Use the provided setting for -txindex in the new database
|
|
|
|
fTxIndex = GetBoolArg("-txindex", false); |
|
|
|
pblocktree->WriteFlag("txindex", fTxIndex); |
|
|
|
|
|
|
|
// Use the provided setting for -addressindex in the new database
|
|
|
|
fAddressIndex = GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX); |
|
|
|
pblocktree->WriteFlag("addressindex", fAddressIndex); |
|
|
|
|
|
|
|
// Use the provided setting for -timestampindex in the new database
|
|
|
|
fTimestampIndex = GetBoolArg("-timestampindex", DEFAULT_TIMESTAMPINDEX); |
|
|
|
pblocktree->WriteFlag("timestampindex", fTimestampIndex); |
|
|
|
|
|
|
|
fSpentIndex = GetBoolArg("-spentindex", DEFAULT_SPENTINDEX); |
|
|
|
pblocktree->WriteFlag("spentindex", fSpentIndex); |
|
|
|
|
|
|
|
LogPrintf("Initializing databases...\n"); |
|
|
|
|
|
|
|
// Only add the genesis block if not reindexing (in which case we reuse the one already on disk)
|
|
|
|