File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed
Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -749,23 +749,10 @@ void InitParameterInteraction()
749749 LogPrintf (" %s: parameter interaction: -externalip set -> setting -discover=0\n " , __func__);
750750 }
751751
752- if (GetBoolArg (" -salvagewallet" , false )) {
753- // Rewrite just private keys: rescan to find transactions
754- if (SoftSetBoolArg (" -rescan" , true ))
755- LogPrintf (" %s: parameter interaction: -salvagewallet=1 -> setting -rescan=1\n " , __func__);
756- }
757-
758- // -zapwallettx implies a rescan
759- if (GetBoolArg (" -zapwallettxes" , false )) {
760- if (SoftSetBoolArg (" -rescan" , true ))
761- LogPrintf (" %s: parameter interaction: -zapwallettxes=<mode> -> setting -rescan=1\n " , __func__);
762- }
763-
764- // disable walletbroadcast and whitelistrelay in blocksonly mode
752+ // disable whitelistrelay in blocksonly mode
765753 if (GetBoolArg (" -blocksonly" , DEFAULT_BLOCKSONLY)) {
766754 if (SoftSetBoolArg (" -whitelistrelay" , false ))
767755 LogPrintf (" %s: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0\n " , __func__);
768- // walletbroadcast is disabled in CWallet::ParameterInteraction()
769756 }
770757
771758 // Forcing relay from whitelisted hosts implies we will accept relays from them in the first place.
Original file line number Diff line number Diff line change @@ -3568,6 +3568,16 @@ bool CWallet::ParameterInteraction()
35683568 LogPrintf (" %s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n " , __func__);
35693569 }
35703570
3571+ if (GetBoolArg (" -salvagewallet" , false ) && SoftSetBoolArg (" -rescan" , true )) {
3572+ // Rewrite just private keys: rescan to find transactions
3573+ LogPrintf (" %s: parameter interaction: -salvagewallet=1 -> setting -rescan=1\n " , __func__);
3574+ }
3575+
3576+ // -zapwallettx implies a rescan
3577+ if (GetBoolArg (" -zapwallettxes" , false ) && SoftSetBoolArg (" -rescan" , true )) {
3578+ LogPrintf (" %s: parameter interaction: -zapwallettxes=<mode> -> setting -rescan=1\n " , __func__);
3579+ }
3580+
35713581 if (GetBoolArg (" -sysperms" , false ))
35723582 return InitError (" -sysperms is not allowed in combination with enabled wallet functionality" );
35733583 if (GetArg (" -prune" , 0 ) && GetBoolArg (" -rescan" , false ))
You can’t perform that action at this time.
0 commit comments