Skip to content

Commit b96ed03

Browse files
committed
[wallet] Remove pruning check for -rescan option
Prior to this PR, the wallet would not allow the `-rescan` option at startup if pruning was enabled. This is unnecessarily restrictive. It should be possible to rescan if pruning is enabled, as long as no blocks have actually been pruned yet. Remove the pruning check from WalletInit::ParameterInteraction(). If any blocks have been pruned, that will be caught in CreateWalletFromFile().
1 parent eea462d commit b96ed03

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/wallet/init.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ bool WalletInit::ParameterInteraction() const
122122

123123
if (gArgs.GetBoolArg("-sysperms", false))
124124
return InitError("-sysperms is not allowed in combination with enabled wallet functionality");
125-
if (gArgs.GetArg("-prune", 0) && gArgs.GetBoolArg("-rescan", false))
126-
return InitError(_("Rescans are not possible in pruned mode. You will need to use -reindex which will download the whole blockchain again.").translated);
127125

128126
return true;
129127
}

0 commit comments

Comments
 (0)