| 83 | } |
| 84 | |
| 85 | bool WalletInit::ParameterInteraction() const |
| 86 | { |
| 87 | if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) { |
| 88 | for (const std::string& wallet : gArgs.GetArgs("-wallet")) { |
| 89 | LogInfo("Parameter interaction: -disablewallet -> ignoring -wallet=%s", wallet); |
| 90 | } |
| 91 | |
| 92 | return true; |
| 93 | } |
| 94 | |
| 95 | if (gArgs.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && gArgs.SoftSetBoolArg("-walletbroadcast", false)) { |
| 96 | LogInfo("Parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0"); |
| 97 | } |
| 98 | |
| 99 | return true; |
| 100 | } |
| 101 | |
| 102 | void WalletInit::Construct(NodeContext& node) const |
| 103 | { |
no test coverage detected