18 bool Verify()
const override {
return true;}
19 bool Open()
const override {LogPrintf(
"No wallet support compiled in!\n");
return true;}
22 void Stop()
const override {}
28 std::vector<std::string> opts = {
"-addresstype",
"-changetype",
"-disablewallet",
"-discardfee=<amt>",
"-fallbackfee=<amt>",
29 "-keypool=<n>",
"-mintxfee=<amt>",
"-paytxfee=<amt>",
"-rescan",
"-salvagewallet",
"-spendzeroconfchange",
"-txconfirmtarget=<n>",
30 "-upgradewallet",
"-wallet=<path>",
"-walletbroadcast",
"-walletdir=<dir>",
"-walletnotify=<cmd>",
"-walletrbf",
"-zapwallettxes=<mode>",
31 "-dblogsize=<n>",
"-flushwallet",
"-privdb",
"-walletrejectlongchains"};
39 throw std::logic_error(
"Wallet function called in non-wallet build.");
44 throw std::logic_error(
"Wallet function called in non-wallet build.");
49 throw std::logic_error(
"Wallet function called in non-wallet build.");
56 std::unique_ptr<Wallet>
MakeWallet(
const std::shared_ptr<CWallet>& wallet)
58 throw std::logic_error(
"Wallet function called in non-wallet build.");
bool ParameterInteraction() const override
Check wallet parameter interaction.
Bitcoin RPC command dispatcher.
std::vector< std::shared_ptr< CWallet > > GetWallets()
bool HasWalletSupport() const override
Is the wallet component enabled.
void AddHiddenArgs(const std::vector< std::string > &args)
Add many hidden arguments.
void AddWalletOptions() const override
Get wallet help string.
std::vector< fs::path > ListWalletDir()
Get wallets in wallet directory.
Interface for accessing a wallet.
void Close() const override
Close wallets.
std::unique_ptr< Wallet > MakeWallet(const std::shared_ptr< CWallet > &wallet)
Return implementation of Wallet interface.
bool Verify() const override
Verify wallets.
const WalletInitInterface & g_wallet_init_interface
void Flush() const override
Flush Wallets.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
fs::path GetWalletDir()
Get the path of the wallet directory.
bool Open() const override
Open wallets.
void Stop() const override
Stop Wallets.
void Start(CScheduler &scheduler) const override
Start wallets.
void RegisterRPC(CRPCTable &) const override
Register wallet RPC.