| 49 | } |
| 50 | |
| 51 | std::shared_ptr<CWallet> TestCreateWallet(std::unique_ptr<WalletDatabase> database, WalletContext& context, uint64_t create_flags) |
| 52 | { |
| 53 | bilingual_str _error; |
| 54 | std::vector<bilingual_str> _warnings; |
| 55 | auto wallet = CWallet::CreateNew(context, "", std::move(database), create_flags, /*born_encrypted=*/false, _error, _warnings); |
| 56 | NotifyWalletLoaded(context, wallet); |
| 57 | if (context.chain) { |
| 58 | wallet->postInitProcess(); |
| 59 | } |
| 60 | return wallet; |
| 61 | } |
| 62 | |
| 63 | std::shared_ptr<CWallet> TestCreateWallet(WalletContext& context) |
| 64 | { |
no test coverage detected