aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/dump.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-10-13 18:45:39 -0400
committerAva Chow <github@achow101.com>2023-12-19 16:54:06 -0500
commitd83bea42d1f0ffb0899a6de3556c489543468995 (patch)
tree9abb5ee2c0ef292fde2e2446f69e5a0febd0a8f3 /src/wallet/dump.h
parent40c80e36b1a204ed133acc403016a6cb1a92051e (diff)
downloadbitcoin-d83bea42d1f0ffb0899a6de3556c489543468995.tar.xz
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.
Diffstat (limited to 'src/wallet/dump.h')
-rw-r--r--src/wallet/dump.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/dump.h b/src/wallet/dump.h
index 5034f95479..9b44af922e 100644
--- a/src/wallet/dump.h
+++ b/src/wallet/dump.h
@@ -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