|
|
|
@ -749,23 +749,10 @@ void InitParameterInteraction()
@@ -749,23 +749,10 @@ void InitParameterInteraction()
|
|
|
|
|
LogPrintf("%s: parameter interaction: -externalip set -> setting -discover=0\n", __func__); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (GetBoolArg("-salvagewallet", false)) { |
|
|
|
|
// Rewrite just private keys: rescan to find transactions
|
|
|
|
|
if (SoftSetBoolArg("-rescan", true)) |
|
|
|
|
LogPrintf("%s: parameter interaction: -salvagewallet=1 -> setting -rescan=1\n", __func__); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// -zapwallettx implies a rescan
|
|
|
|
|
if (GetBoolArg("-zapwallettxes", false)) { |
|
|
|
|
if (SoftSetBoolArg("-rescan", true)) |
|
|
|
|
LogPrintf("%s: parameter interaction: -zapwallettxes=<mode> -> setting -rescan=1\n", __func__); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// disable walletbroadcast and whitelistrelay in blocksonly mode
|
|
|
|
|
// disable whitelistrelay in blocksonly mode
|
|
|
|
|
if (GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY)) { |
|
|
|
|
if (SoftSetBoolArg("-whitelistrelay", false)) |
|
|
|
|
LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0\n", __func__); |
|
|
|
|
// walletbroadcast is disabled in CWallet::ParameterInteraction()
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Forcing relay from whitelisted hosts implies we will accept relays from them in the first place.
|
|
|
|
|