MCPcopy Create free account
hub / github.com/ElementsProject/elements / createWallet

Method createWallet

src/wallet/interfaces.cpp:556–565  ·  view source on GitHub ↗

WalletLoader methods

Source from the content-addressed store, hash-verified

554
555 //! WalletLoader methods
556 std::unique_ptr<Wallet> createWallet(const std::string& name, const SecureString& passphrase, uint64_t wallet_creation_flags, bilingual_str& error, std::vector<bilingual_str>& warnings) override
557 {
558 std::shared_ptr<CWallet> wallet;
559 DatabaseOptions options;
560 DatabaseStatus status;
561 options.require_create = true;
562 options.create_flags = wallet_creation_flags;
563 options.create_passphrase = passphrase;
564 return MakeWallet(m_context, CreateWallet(m_context, name, true /* load_on_start */, options, status, error, warnings));
565 }
566 std::unique_ptr<Wallet> loadWallet(const std::string& name, bilingual_str& error, std::vector<bilingual_str>& warnings) override
567 {
568 DatabaseOptions options;

Callers

nothing calls this directly

Calls 2

CreateWalletFunction · 0.85
MakeWalletFunction · 0.70

Tested by

no test coverage detected