diff options
| author | Jeff Garzik <[email protected]> | 2012-06-28 23:18:38 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-06-28 23:18:38 -0400 |
| commit | 70ab73a0087cbb0d6b26c9ad58146ae542b1b9be (patch) | |
| tree | 4b65de10c0606f765d4c1b99bfcb3a2825f7dc0c /src/bitcoinrpc.cpp | |
| parent | Merge branch 'patch-5' of https://github.com/xanatos/bitcoin (diff) | |
| download | discoin-70ab73a0087cbb0d6b26c9ad58146ae542b1b9be.tar.xz discoin-70ab73a0087cbb0d6b26c9ad58146ae542b1b9be.zip | |
Create new rpcnet module, and move 'getconnectioncount' RPC to it
Diffstat (limited to 'src/bitcoinrpc.cpp')
| -rw-r--r-- | src/bitcoinrpc.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index de6db5398..3c61121da 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -46,6 +46,7 @@ static std::string strRPCUserColonPass; static int64 nWalletUnlockTime; static CCriticalSection cs_nWalletUnlockTime; +extern Value getconnectioncount(const Array& params, bool fHelp); extern Value dumpprivkey(const Array& params, bool fHelp); extern Value importprivkey(const Array& params, bool fHelp); @@ -456,17 +457,6 @@ Value getblockcount(const Array& params, bool fHelp) } -Value getconnectioncount(const Array& params, bool fHelp) -{ - if (fHelp || params.size() != 0) - throw runtime_error( - "getconnectioncount\n" - "Returns the number of connections to other nodes."); - - return (int)vNodes.size(); -} - - Value getdifficulty(const Array& params, bool fHelp) { if (fHelp || params.size() != 0) |