| 221 | } |
| 222 | |
| 223 | bool WalletInit::Open() const |
| 224 | { |
| 225 | if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) { |
| 226 | LogPrintf("Wallet disabled!\n"); |
| 227 | return true; |
| 228 | } |
| 229 | |
| 230 | for (const std::string& walletFile : gArgs.GetArgs("-wallet")) { |
| 231 | std::shared_ptr<CWallet> pwallet = CWallet::CreateWalletFromFile(walletFile, fs::absolute(walletFile, GetWalletDir())); |
| 232 | if (!pwallet) { |
| 233 | return false; |
| 234 | } |
| 235 | AddWallet(pwallet); |
| 236 | } |
| 237 | |
| 238 | return true; |
| 239 | } |
| 240 | |
| 241 | void WalletInit::Start(CScheduler& scheduler) const |
| 242 | { |
nothing calls this directly
no test coverage detected