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.
This commit is contained in:
@@ -229,6 +229,7 @@ static const CRPCCommand vRPCCommands[] =
|
||||
{ "getbestblockhash", &getbestblockhash, true, false, false },
|
||||
{ "getconnectioncount", &getconnectioncount, true, false, false },
|
||||
{ "getpeerinfo", &getpeerinfo, true, false, false },
|
||||
{ "ping", &ping, true, false, false },
|
||||
{ "addnode", &addnode, true, true, false },
|
||||
{ "getaddednodeinfo", &getaddednodeinfo, true, true, false },
|
||||
{ "getdifficulty", &getdifficulty, true, false, false },
|
||||
|
||||
Reference in New Issue
Block a user