| 74 | |
| 75 | |
| 76 | std::shared_ptr<CWallet> TestLoadWallet(std::unique_ptr<WalletDatabase> database, WalletContext& context) |
| 77 | { |
| 78 | bilingual_str error; |
| 79 | std::vector<bilingual_str> warnings; |
| 80 | auto wallet = CWallet::LoadExisting(context, "", std::move(database), error, warnings); |
| 81 | NotifyWalletLoaded(context, wallet); |
| 82 | if (context.chain) { |
| 83 | wallet->postInitProcess(); |
| 84 | } |
| 85 | return wallet; |
| 86 | } |
| 87 | |
| 88 | std::shared_ptr<CWallet> TestLoadWallet(WalletContext& context) |
| 89 | { |
no test coverage detected