mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-08 14:34:53 -05:00

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.
23 lines
698 B
C++
23 lines
698 B
C++
// Copyright (c) 2020-2021 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_WALLET_DUMP_H
|
|
#define BITCOIN_WALLET_DUMP_H
|
|
|
|
#include <util/fs.h>
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct bilingual_str;
|
|
class ArgsManager;
|
|
|
|
namespace wallet {
|
|
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
|
|
|
|
#endif // BITCOIN_WALLET_DUMP_H
|