diff options
| author | Josh Lehan <[email protected]> | 2013-08-22 04:34:33 -0700 |
|---|---|---|
| committer | Josh Lehan <[email protected]> | 2013-10-04 01:30:12 -0700 |
| commit | 971bb3e901aad5d4f04a651e3e2a75161d3a4e2a (patch) | |
| tree | b3c28acdf4f64c005c81af7d77416499ab8feeb8 /src/bitcoinrpc.h | |
| parent | Merge pull request #2947 from gmaxwell/theyre_maturing_faster_these_days (diff) | |
| download | discoin-971bb3e901aad5d4f04a651e3e2a75161d3a4e2a.tar.xz discoin-971bb3e901aad5d4f04a651e3e2a75161d3a4e2a.zip | |
Added ping time measurement.
New RPC "ping" command to request ping.
Implemented "pong" message handler.
New "pingtime" field in getpeerinfo, to provide results to user.
New "pingwait" field, to show pings still in flight, to better see newly lagging peers.
Diffstat (limited to 'src/bitcoinrpc.h')
| -rw-r--r-- | src/bitcoinrpc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h index ce1c0e68b..f495870b3 100644 --- a/src/bitcoinrpc.h +++ b/src/bitcoinrpc.h @@ -153,6 +153,7 @@ extern void EnsureWalletIsUnlocked(); extern json_spirit::Value getconnectioncount(const json_spirit::Array& params, bool fHelp); // in rpcnet.cpp extern json_spirit::Value getpeerinfo(const json_spirit::Array& params, bool fHelp); +extern json_spirit::Value ping(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value addnode(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value getaddednodeinfo(const json_spirit::Array& params, bool fHelp); |