File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4043,18 +4043,19 @@ bool CWallet::ParameterInteraction()
4043
4043
}
4044
4044
}
4045
4045
4046
- // -zapwallettx implies dropping the mempool on startup
4047
- if (GetBoolArg (" -zapwallettxes" , false ) && SoftSetBoolArg (" -persistmempool" , false )) {
4048
- LogPrintf (" %s: parameter interaction: -zapwallettxes=<mode> -> setting -persistmempool=0\n " , __func__);
4046
+ int zapwallettxes = GetArg (" -zapwallettxes" , 0 );
4047
+ // -zapwallettxes implies dropping the mempool on startup
4048
+ if (zapwallettxes != 0 && SoftSetBoolArg (" -persistmempool" , false )) {
4049
+ LogPrintf (" %s: parameter interaction: -zapwallettxes=%s -> setting -persistmempool=0\n " , __func__, zapwallettxes);
4049
4050
}
4050
4051
4051
- // -zapwallettx implies a rescan
4052
- if (GetBoolArg ( " - zapwallettxes" , false ) ) {
4052
+ // -zapwallettxes implies a rescan
4053
+ if (zapwallettxes != 0 ) {
4053
4054
if (is_multiwallet) {
4054
4055
return InitError (strprintf (" %s is only allowed with a single wallet file" , " -zapwallettxes" ));
4055
4056
}
4056
4057
if (SoftSetBoolArg (" -rescan" , true )) {
4057
- LogPrintf (" %s: parameter interaction: -zapwallettxes=<mode> -> setting -rescan=1\n " , __func__);
4058
+ LogPrintf (" %s: parameter interaction: -zapwallettxes=%s -> setting -rescan=1\n " , __func__, zapwallettxes );
4058
4059
}
4059
4060
}
4060
4061
You can’t perform that action at this time.
0 commit comments