mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
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:
parent
acb3ebc455
commit
971bb3e901
6 changed files with 131 additions and 4 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue