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

Method restoreWallet

src/wallet/interfaces.cpp:573–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
576
577 return MakeWallet(m_context, RestoreWallet(m_context, backup_file, wallet_name, /*load_on_start=*/true, status, error, warnings));
578 }
579 std::string getWalletDir() override
580 {
581 return fs::PathToString(GetWalletDir());

Callers

nothing calls this directly

Calls 2

RestoreWalletFunction · 0.85
MakeWalletFunction · 0.70

Tested by

no test coverage detected