Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2018-present The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#include <common/args.h>6#include <util/log.h>7#include <walletinitinterface.h>9class ArgsManager;11namespace interfaces {12class Chain;13class Handler;14class Wallet;15class WalletLoader;16}18class DummyWalletInit : public WalletInitInterface {19public:21bool HasWalletSupport() const override {return false;}22void AddWalletOptions(ArgsManager& argsman) const override;23bool ParameterInteraction() const override {return true;}24void Construct(node::NodeContext& node) const override { LogInfo("No wallet support compiled in!"); }25};27void DummyWalletInit::AddWalletOptions(ArgsManager& argsman) const28{29argsman.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"-mintxfee=<amt>",41"-signer=<cmd>",42"-spendzeroconfchange",43"-txconfirmtarget=<n>",44"-wallet=<path>",45"-walletbroadcast",46"-walletdir=<dir>",47"-walletnotify=<cmd>",48"-walletrbf",49"-walletrejectlongchains",50"-walletcrosschain",51"-unsafesqlitesync",52});53}55const WalletInitInterface& g_wallet_init_interface = DummyWalletInit();57namespace interfaces {59std::unique_ptr<WalletLoader> MakeWalletLoader(Chain& chain, ArgsManager& args)60{61throw std::logic_error("Wallet function called in non-wallet build.");62}64} // namespace interfaces