Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
dummywallet.cpp
Go to the documentation of this file.
1// Copyright (c) 2018-present 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#include <common/args.h>
6#include <util/log.h>
8
9class ArgsManager;
10
11namespace interfaces {
12class Chain;
13class Handler;
14class Wallet;
15class WalletLoader;
16}
17
19public:
20
21 bool HasWalletSupport() const override {return false;}
22 void AddWalletOptions(ArgsManager& argsman) const override;
23 bool ParameterInteraction() const override {return true;}
24 void Construct(node::NodeContext& node) const override { LogInfo("No wallet support compiled in!"); }
25};
26
28{
29 argsman.AddHiddenArgs({
30 "-addresstype",
31 "-avoidpartialspends",
32 "-changetype",
33 "-consolidatefeerate=<amt>",
34 "-disablewallet",
35 "-discardfee=<amt>",
36 "-fallbackfee=<amt>",
37 "-keypool=<n>",
38 "-maxapsfee=<n>",
39 "-maxtxfee=<amt>",
40 "-maxfeerate=<amt>",
41 "-mintxfee=<amt>",
42 "-signer=<cmd>",
43 "-spendzeroconfchange",
44 "-txconfirmtarget=<n>",
45 "-wallet=<path>",
46 "-walletbroadcast",
47 "-walletdir=<dir>",
48 "-walletnotify=<cmd>",
49 "-walletrbf",
50 "-walletrejectlongchains",
51 "-walletcrosschain",
52 "-unsafesqlitesync",
53 });
54}
55
57
58namespace interfaces {
59
60std::unique_ptr<WalletLoader> MakeWalletLoader(Chain& chain, ArgsManager& args)
61{
62 throw std::logic_error("Wallet function called in non-wallet build.");
63}
64
65} // namespace interfaces
ArgsManager & args
Definition bitcoind.cpp:280
bool ParameterInteraction() const override
Check wallet parameter interaction.
bool HasWalletSupport() const override
Is the wallet component enabled.
void AddWalletOptions(ArgsManager &argsman) const override
Get wallet help string.
void Construct(node::NodeContext &node) const override
Add wallets that should be opened to list of chain clients.
Interface giving clients (wallet processes, maybe other analysis tools in the future) ability to acce...
Definition chain.h:117
const WalletInitInterface & g_wallet_init_interface
#define LogInfo(...)
Definition log.h:136
std::unique_ptr< WalletLoader > MakeWalletLoader(Chain &chain, ArgsManager &args)
Return implementation of ChainClient interface for a wallet loader.
NodeContext struct containing references to chain state and connection state.
Definition context.h:57
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:82