mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
`CreateFromDump` never writes to the vector, so the loop that prints it
in wallet-tool cannot produce output. `tool_wallet.py` already asserts
empty output for `createfromdump`.
The only `warnings.push_back()` was removed in 7a41c939f0 ("wallet:
Remove -format and bdb from wallet tool's createfromdump").
23 lines
645 B
C++
23 lines
645 B
C++
// Copyright (c) 2020-present 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>
|
|
|
|
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);
|
|
} // namespace wallet
|
|
|
|
#endif // BITCOIN_WALLET_DUMP_H
|