RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode data
This commit is contained in:
@@ -47,6 +47,7 @@ static int64 nWalletUnlockTime;
|
||||
static CCriticalSection cs_nWalletUnlockTime;
|
||||
|
||||
extern Value getconnectioncount(const Array& params, bool fHelp);
|
||||
extern Value getpeerinfo(const Array& params, bool fHelp);
|
||||
extern Value dumpprivkey(const Array& params, bool fHelp);
|
||||
extern Value importprivkey(const Array& params, bool fHelp);
|
||||
|
||||
@@ -2300,6 +2301,7 @@ static const CRPCCommand vRPCCommands[] =
|
||||
{ "stop", &stop, true },
|
||||
{ "getblockcount", &getblockcount, true },
|
||||
{ "getconnectioncount", &getconnectioncount, true },
|
||||
{ "getpeerinfo", &getpeerinfo, true },
|
||||
{ "getdifficulty", &getdifficulty, true },
|
||||
{ "getgenerate", &getgenerate, true },
|
||||
{ "setgenerate", &setgenerate, true },
|
||||
|
||||
Reference in New Issue
Block a user