Add RPC command peers.

This commit is contained in:
Arthur Britto
2012-03-10 19:06:05 -08:00
parent af929c7d49
commit 2596cce905
7 changed files with 35 additions and 0 deletions

View File

@@ -538,6 +538,15 @@ void Peer::punishPeer(PeerPunish)
{
}
Json::Value Peer::getJson() {
Json::Value ret(Json::objectValue);
ret["ip"] = mSocket.remote_endpoint().address().to_string();
ret["hanko"] = mHanko.ToString();
return ret;
}
#if 0
/*