diff --git a/src/validation.cpp b/src/validation.cpp index aa07953b1..51d1aca8c 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4179,7 +4179,7 @@ bool LoadBlockIndex(const CChainParams& chainparams) LogPrintf("Initializing databases...\n"); // Use the provided setting for -txindex in the new database - fTxIndex = GetBoolArg("-txindex", DEFAULT_TXINDEX); + fTxIndex = gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX); pblocktree->WriteFlag("txindex", fTxIndex); } return true;