| 99 | } |
| 100 | |
| 101 | bool 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 | |
| 130 | void WalletInit::Construct(NodeContext& node) const |
| 131 | { |
no test coverage detected