MCPcopy Create free account
hub / github.com/ElementsProject/elements / ParameterInteraction

Method ParameterInteraction

src/wallet/init.cpp:101–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool WalletInit::ParameterInteraction() const
102{
103#ifdef USE_BDB
104 if (!BerkeleyDatabaseSanityCheck()) {
105 return InitError(Untranslated("A version conflict was detected between the run-time BerkeleyDB library and the one used during compilation."));
106 }
107#endif
108 if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
109 for (const std::string& wallet : gArgs.GetArgs("-wallet")) {
110 LogPrintf("%s: parameter interaction: -disablewallet -> ignoring -wallet=%s\n", __func__, wallet);
111 }
112
113 return true;
114 }
115
116 if (gArgs.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && gArgs.SoftSetBoolArg("-walletbroadcast", false)) {
117 LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n", __func__);
118 }
119
120 if (gArgs.IsArgSet("-zapwallettxes")) {
121 return InitError(Untranslated("-zapwallettxes has been removed. If you are attempting to remove a stuck transaction from your wallet, please use abandontransaction instead."));
122 }
123
124 if (gArgs.GetBoolArg("-sysperms", false))
125 return InitError(Untranslated("-sysperms is not allowed in combination with enabled wallet functionality"));
126
127 return true;
128}
129
130void WalletInit::Construct(NodeContext& node) const
131{

Callers 1

Calls 7

InitErrorFunction · 0.85
UntranslatedFunction · 0.85
GetBoolArgMethod · 0.80
GetArgsMethod · 0.80
SoftSetBoolArgMethod · 0.80
IsArgSetMethod · 0.80

Tested by

no test coverage detected