Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/net.cpp
Show All 16 Lines | |||||
#include "ui_interface.h" | #include "ui_interface.h" | ||||
#include "util.h" | #include "util.h" | ||||
#include "utilstrencodings.h" | #include "utilstrencodings.h" | ||||
#include "validation.h" | #include "validation.h" | ||||
#include "version.h" | #include "version.h" | ||||
#include <univalue.h> | #include <univalue.h> | ||||
class CAddress; | |||||
jasonbcox: The fact that this compiles is a fluke. You should always include from source files, and… | |||||
nakihitoAuthorUnsubmitted Not Done Inline ActionsFixed. nakihito: Fixed. | |||||
static UniValue getconnectioncount(const Config &config, | static UniValue getconnectioncount(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
if (request.fHelp || request.params.size() != 0) | if (request.fHelp || request.params.size() != 0) | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
"getconnectioncount\n" | "getconnectioncount\n" | ||||
"\nReturns the number of connections to other nodes.\n" | "\nReturns the number of connections to other nodes.\n" | ||||
"\nResult:\n" | "\nResult:\n" | ||||
"n (numeric) The connection count\n" | "n (numeric) The connection count\n" | ||||
▲ Show 20 Lines • Show All 750 Lines • Show Last 20 Lines |
The fact that this compiles is a fluke. You should always include from source files, and forward declarations may be used in headers where pointers or references only are used.