|
|
@ -53,11 +53,16 @@ std::string GetWalletHelpString(bool showDebug)
|
|
|
|
|
|
|
|
|
|
|
|
bool WalletParameterInteraction()
|
|
|
|
bool WalletParameterInteraction()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
gArgs.SoftSetArg("-wallet", DEFAULT_WALLET_DAT);
|
|
|
|
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
|
|
|
|
const bool is_multiwallet = gArgs.GetArgs("-wallet").size() > 1;
|
|
|
|
for (const std::string& wallet : gArgs.GetArgs("-wallet")) {
|
|
|
|
|
|
|
|
LogPrintf("%s: parameter interaction: -disablewallet -> ignoring -wallet=%s\n", __func__, wallet);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gArgs.SoftSetArg("-wallet", DEFAULT_WALLET_DAT);
|
|
|
|
|
|
|
|
const bool is_multiwallet = gArgs.GetArgs("-wallet").size() > 1;
|
|
|
|
|
|
|
|
|
|
|
|
if (gArgs.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && gArgs.SoftSetBoolArg("-walletbroadcast", false)) {
|
|
|
|
if (gArgs.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && gArgs.SoftSetBoolArg("-walletbroadcast", false)) {
|
|
|
|
LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n", __func__);
|
|
|
|
LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n", __func__);
|
|
|
|