| 2963 | } |
| 2964 | |
| 2965 | std::unique_ptr<WalletDatabase> MakeWalletDatabase(const std::string& name, const DatabaseOptions& options, DatabaseStatus& status, bilingual_str& error_string) |
| 2966 | { |
| 2967 | const auto& wallet_path = GetWalletPath(name); |
| 2968 | if (!wallet_path) { |
| 2969 | error_string = util::ErrorString(wallet_path); |
| 2970 | status = DatabaseStatus::FAILED_BAD_PATH; |
| 2971 | return nullptr; |
| 2972 | } |
| 2973 | return MakeDatabase(*wallet_path, options, status, error_string); |
| 2974 | } |
| 2975 | |
| 2976 | bool CWallet::LoadWalletArgs(std::shared_ptr<CWallet> wallet, const WalletContext& context, bilingual_str& error, std::vector<bilingual_str>& warnings) |
| 2977 | { |