From 1006f0707e34f8903f247195dabd86243ae61f05 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Fri, 29 Jun 2012 17:24:53 -0400 Subject: RPC: add 'getpeerinfo', returning easy-to-retrieve per-CNode data --- src/bitcoinrpc.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bitcoinrpc.cpp') diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 3c61121dab..51690243bc 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -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 }, -- cgit v1.2.3