Bitcoin Core  24.99.0
P2P Digital Currency
dump.h
Go to the documentation of this file.
1 // Copyright (c) 2020-2021 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_WALLET_DUMP_H
6 #define BITCOIN_WALLET_DUMP_H
7 
8 #include <fs.h>
9 
10 #include <string>
11 #include <vector>
12 
13 struct bilingual_str;
14 class ArgsManager;
15 
16 namespace wallet {
17 class CWallet;
18 bool DumpWallet(const ArgsManager& args, CWallet& wallet, bilingual_str& error);
19 bool CreateFromDump(const ArgsManager& args, const std::string& name, const fs::path& wallet_path, bilingual_str& error, std::vector<bilingual_str>& warnings);
20 } // namespace wallet
21 
22 #endif // BITCOIN_WALLET_DUMP_H
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
Definition: fs.h:31
Definition: node.h:39
bool CreateFromDump(const ArgsManager &args, const std::string &name, const fs::path &wallet_path, bilingual_str &error, std::vector< bilingual_str > &warnings)
Definition: dump.cpp:118
bool DumpWallet(const ArgsManager &args, CWallet &wallet, bilingual_str &error)
Definition: dump.cpp:22
ArgsManager args
const char * name
Definition: rest.cpp:46
Bilingual messages:
Definition: translation.h:18
bool error(const char *fmt, const Args &... args)
Definition: system.h:48