mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
[validation] Replace tx index code in validation code with TxIndex.
This commit is contained in:
parent
8181db88f6
commit
e0a3b80033
4 changed files with 7 additions and 43 deletions
|
|
@ -1483,12 +1483,6 @@ bool AppInitMain()
|
|||
return InitError(_("Incorrect or no genesis block found. Wrong datadir for network?"));
|
||||
}
|
||||
|
||||
// Check for changed -txindex state
|
||||
if (fTxIndex != gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX)) {
|
||||
strLoadError = _("You need to rebuild the database using -reindex to change -txindex");
|
||||
break;
|
||||
}
|
||||
|
||||
// Check for changed -prune state. What we are concerned about is a user who has pruned blocks
|
||||
// in the past, but is now trying to run unpruned.
|
||||
if (fHavePruned && !fPruneMode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue