mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
wallettool: Don't create CWallet when dumping DB
It's not necessary to set up an entire CWallet just so we can get access to the WalletDatabase and read the records. Instead we can go one level lower and make just a WalletDatabase.
This commit is contained in:
@@ -14,8 +14,9 @@ struct bilingual_str;
|
||||
class ArgsManager;
|
||||
|
||||
namespace wallet {
|
||||
class CWallet;
|
||||
bool DumpWallet(const ArgsManager& args, CWallet& wallet, bilingual_str& error);
|
||||
class WalletDatabase;
|
||||
|
||||
bool DumpWallet(const ArgsManager& args, WalletDatabase& db, bilingual_str& error);
|
||||
bool CreateFromDump(const ArgsManager& args, const std::string& name, const fs::path& wallet_path, bilingual_str& error, std::vector<bilingual_str>& warnings);
|
||||
} // namespace wallet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user