Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/init.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2017 The Bitcoin Core developers | // Copyright (c) 2009-2017 The Bitcoin Core developers | ||||
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <config.h> | #include <config.h> | ||||
#include <init.h> | #include <init.h> | ||||
#include <net.h> | #include <net.h> | ||||
#include <util.h> | #include <util.h> | ||||
#include <utilmoneystr.h> | #include <utilmoneystr.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
#include <wallet/rpcdump.h> | |||||
#include <wallet/rpcwallet.h> | #include <wallet/rpcwallet.h> | ||||
#include <wallet/wallet.h> | #include <wallet/wallet.h> | ||||
#include <wallet/walletutil.h> | #include <wallet/walletutil.h> | ||||
#include <walletinitinterface.h> | #include <walletinitinterface.h> | ||||
class WalletInit : public WalletInitInterface { | class WalletInit : public WalletInitInterface { | ||||
public: | public: | ||||
//! Return the wallets help message. | //! Return the wallets help message. | ||||
▲ Show 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void WalletInit::RegisterRPC(CRPCTable &t) { | void WalletInit::RegisterRPC(CRPCTable &t) { | ||||
if (gArgs.GetBoolArg("-disablewallet", false)) { | if (gArgs.GetBoolArg("-disablewallet", false)) { | ||||
return; | return; | ||||
} | } | ||||
RegisterWalletRPCCommands(t); | RegisterWalletRPCCommands(t); | ||||
RegisterDumpRPCCommands(t); | |||||
} | } | ||||
bool WalletInit::Verify(const CChainParams &chainParams) { | bool WalletInit::Verify(const CChainParams &chainParams) { | ||||
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) { | if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) { | ||||
return true; | return true; | ||||
} | } | ||||
if (gArgs.IsArgSet("-walletdir")) { | if (gArgs.IsArgSet("-walletdir")) { | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |