File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,19 +118,19 @@ bool WalletInit::ParameterInteraction() const
118
118
}
119
119
}
120
120
121
- int zapwallettxes = gArgs .GetArg (" -zapwallettxes" , 0 );
121
+ bool zapwallettxes = gArgs .GetBoolArg (" -zapwallettxes" , false );
122
122
// -zapwallettxes implies dropping the mempool on startup
123
- if (zapwallettxes != 0 && gArgs .SoftSetBoolArg (" -persistmempool" , false )) {
124
- LogPrintf (" %s: parameter interaction: -zapwallettxes=%s -> setting -persistmempool=0\n " , __func__, zapwallettxes );
123
+ if (zapwallettxes && gArgs .SoftSetBoolArg (" -persistmempool" , false )) {
124
+ LogPrintf (" %s: parameter interaction: -zapwallettxes enabled -> setting -persistmempool=0\n " , __func__);
125
125
}
126
126
127
127
// -zapwallettxes implies a rescan
128
- if (zapwallettxes != 0 ) {
128
+ if (zapwallettxes) {
129
129
if (is_multiwallet) {
130
130
return InitError (strprintf (" %s is only allowed with a single wallet file" , " -zapwallettxes" ));
131
131
}
132
132
if (gArgs .SoftSetBoolArg (" -rescan" , true )) {
133
- LogPrintf (" %s: parameter interaction: -zapwallettxes=%s -> setting -rescan=1\n " , __func__, zapwallettxes );
133
+ LogPrintf (" %s: parameter interaction: -zapwallettxes enabled -> setting -rescan=1\n " , __func__);
134
134
}
135
135
}
136
136
You can’t perform that action at this time.
0 commit comments