MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ParameterInteraction

Method ParameterInteraction

src/wallet/init.cpp:85–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool 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
102void WalletInit::Construct(NodeContext& node) const
103{

Callers 1

Calls 3

GetBoolArgMethod · 0.80
GetArgsMethod · 0.80
SoftSetBoolArgMethod · 0.80

Tested by

no test coverage detected