Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-cli.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core 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. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include "config/bitcoin-config.h" | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include "chainparamsbase.h" | #include <chainparamsbase.h> | ||||
#include "clientversion.h" | #include <clientversion.h> | ||||
#include "fs.h" | #include <fs.h> | ||||
#include "rpc/client.h" | #include <rpc/client.h> | ||||
#include "rpc/protocol.h" | #include <rpc/protocol.h> | ||||
#include "support/events.h" | #include <support/events.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include <boost/filesystem/operations.hpp> | #include <boost/filesystem/operations.hpp> | ||||
#include <cstdio> | |||||
#include <event2/buffer.h> | #include <event2/buffer.h> | ||||
#include <event2/keyvalq_struct.h> | #include <event2/keyvalq_struct.h> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
#include <cstdio> | |||||
static const char DEFAULT_RPCCONNECT[] = "127.0.0.1"; | static const char DEFAULT_RPCCONNECT[] = "127.0.0.1"; | ||||
static const int DEFAULT_HTTP_CLIENT_TIMEOUT = 900; | static const int DEFAULT_HTTP_CLIENT_TIMEOUT = 900; | ||||
static const bool DEFAULT_NAMED = false; | static const bool DEFAULT_NAMED = false; | ||||
static const int CONTINUE_EXECUTION = -1; | static const int CONTINUE_EXECUTION = -1; | ||||
std::string HelpMessageCli() { | std::string HelpMessageCli() { | ||||
const auto defaultBaseParams = | const auto defaultBaseParams = | ||||
CreateBaseChainParams(CBaseChainParams::MAIN); | CreateBaseChainParams(CBaseChainParams::MAIN); | ||||
▲ Show 20 Lines • Show All 564 Lines • Show Last 20 Lines |