MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / TestCreateWallet

Function TestCreateWallet

src/wallet/test/util.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51std::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
63std::shared_ptr<CWallet> TestCreateWallet(WalletContext& context)
64{

Callers 4

BOOST_FIXTURE_TEST_CASEFunction · 0.85
WalletIsMineFunction · 0.85
WalletLoadingDescriptorsFunction · 0.85
WalletEncryptFunction · 0.85

Calls 3

NotifyWalletLoadedFunction · 0.85
MakeWalletDatabaseFunction · 0.85
postInitProcessMethod · 0.80

Tested by

no test coverage detected