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

Method loadWallet

src/wallet/interfaces.cpp:566–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
569 DatabaseStatus status;
570 options.require_existing = true;
571 return MakeWallet(m_context, LoadWallet(m_context, name, true /* load_on_start */, options, status, error, warnings));
572 }
573 std::unique_ptr<Wallet> restoreWallet(const fs::path& backup_file, const std::string& wallet_name, bilingual_str& error, std::vector<bilingual_str>& warnings) override
574 {
575 DatabaseStatus status;

Callers 1

openMethod · 0.80

Calls 2

LoadWalletFunction · 0.85
MakeWalletFunction · 0.70

Tested by

no test coverage detected